PDA

View Full Version : Creature spawn script problem TSL


newbiemodder
07-19-2009, 03:35 PM
I'm trying to spawn an npc on the condition that a certain journal entry has been reached. I have this compiled script but the npc doesn't spawn.

code:
void main() {


if (GetJournalEntry("dagobah")==60){

CreateObject( OBJECT_TYPE_CREATURE, "n_gabsnow", GetLocation(GetFirstPC()));

}

}

The GetJournalEntry quest is a completed quest so I don't know if that is causing a problem.