Hello, I've made a few mods for Morrowind but I wanted to start working on a bigger one, one that required scripting. I learned a lot as I made this script but now I'm baffled at what the problem could be. Last time I had a problem the issues was simply my script resetting a variable over and over and retriggering the same if statement. Now I have no idea what is happening.
The script is for a mod that adds npcs to the game. One is an alchemist khajiit. You talk to her one day and she mentions she is going to make a special kind of potion. This starts the script. The script is then designed to see if two days or more have passed. If they have, you walk into her house and she shouts for help. She needs you to grab an ingredient and give it to her before the fire salts cool down. Giving it to her in time will make the Journal go to VVE_Fanani_QuickHelp 2, declaring the quest a success. However, I can't get her to even say the first message. Any help would be greatly appreciated.
short FQH_currentday
short FQH_timepassed
short FQHV
float timer
if ( FQH_currentday != Day )
set FQH_currentday to Day
set FQH_timepassed to FQH_timepassed + 1
endif
if ( FQHV == 0 )
if ( FQH_timepassed >= 2 )
set FQHV to 1
endif
endif
if ( FQHV == 1 )
if ( GetPCCell "Vivec, Fanani's Home" == 1 )
MessageBox "You're here? Please, get Fanani the black lichen before the fire salt cools!"
set timer to 0
Journal VVE_Fanani_QuickHelp 1
set FQHV to 2
endif
endif
if ( FQHV == 2 )
Set timer to ( timer + GetSecondsPassed )
if timer > 10
if ( Journal VVE_Fanani_QuickHelp != 2 )
MessageBox "It's too late. The fire salts are too cold to do anything with now."
Journal VVE_Fanani_QuickHelp 3
set FQHV to 3
endif
endif
endif
if ( Journal VVE_Fanani_Quickhelp == 2 )
set FQHV to 3
endif
if ( FQHV == 3 )
StopScript Fanani_QuickHelp
endif