I have been working on a mod for some time, and now came to the phase, after loads of interior and some exterior cell editing, npc and faction creation, etc, where I need to get knowledgeable on the scripting topic, to be able to carry on with my Mod.
I have read a lot on the matter (at least a lot for a noob, probably hardly even the basics for a competent modder), and got stuck at my first script already.
In this script, I am trying to accomplish the following:
After the PC talked with an NPC(dermea) and got the information required (setting the journal to 20) , he has to reach level 5, and when that happens, the NPC returns for a visit while he is at sleep, wakes him up and provides another chance for a conversation, setting the journal to 30. Unfortunately, nothing of my script seem to be working, the PC does not even wake up.
Here is the result of my humble effort so far:
Begin dermeaScript
if ( Getjournalindex Gre_Initiation >= 30 )
return
endif
if ( GetPCSleep == 0 )
return
endif
if ( Getjournalindex Gre_Initiation == 20 )
if ( GetPCSleep == 1 )
if ( player->GetLevel >= 5 )
WakeUpPC
MessageBox "blablabla." "Ok"
PlaceAtPC, "dermea" 1, 128, 1
Journal Gre_Initiation 30
return
endif
endif
endif
end
I would be most grateful if you could enlighten me what I am doing wrong. Be careful, though, if you help me to solve this problem, I will be quite probably coming back troubling you with more questions "-"