Page 1 of 1
problem with script
Posted: 17 Jun 2018, 20:43
by Vangrel
-
Spoiler: Show
- Begin KS_Shanithrone
short state
If ( Menumode == 1 )
return
endif
If ( state == 0 )
if ( ajw_newCharGen == 1 )
KS_Shani->AiTravel 83 228 -102 "Mournhold, Royal Palace Throne Room"
else
KS_Shani->AiTravel 2 -47 -92 "Mournhold, Royal Palace Throne Room"
endif
set state to 1
endif
If ( state == 1 )
If ( KS_Shani->GetAiPackageDone == 1 )
player->Say "vo\ord\Int_ORM002.mp3" "Guard: What are you doing? Get out!"
KS_Shani->AiFollow player 0 0 0 0
Journal KS_ShaniComp 63
Set "KS_Shani".NoGreet to 0
KS_Shani->SetHello 30
StopScript KS_ShaniThrone
endif
endif
End
the cs is recognising line 12 " else " as an unexpected token <new line>, what should i change?
Re: problem with script
Posted: 18 Jun 2018, 01:19
by AnyOldName3
There's something wrong with the line before:
Code: Select all
KS_Shani->AiTravel 83 228 -102 "Mournhold, Royal Palace Throne Room"
Look at the documentation for AiTravel and see what it says.