Don88 Posted March 7, 2004 Share Posted March 7, 2004 Can anyone help me? I am attempting to make a message box pop up, at the bottom of the screen. It is the start of the game. I am making a TC. I have no knowledge of scripting. I have scripting for dummies 5 but it doesn't help me! <_< I have completed the tutorial that comes with it, sucessfully. If i am stupid just tell me the right answer. :blush: I don't know why this is happening. I have tried about 4 or 5 different scripts but none of them worked. Ok my problem is this: I want a very simple script to display a message(easy?) :blush: and then make an npc move from point to point and stop. This is my script so far : Begin CharGenWalkNPCShort guardstate Set guardstate to 1If (guardstate == 1)Set guardstate to 2 MessageBox "Oh good, you're alive. I thought we'd killed another slave. Well, c'mon don't just stand there, follow me!"Endif If (guardstate == 2) AITravel 3970, 4313, 12053 set state to 3Endif If (guardstate == 3) AITravel 3960, 4745, 12257 set state to 4Endif If (guardstate == 4) AITravel 3709, 4353, 12287 set state to 5Endif If (guardstate == 5) AITravel 3954, 4289, 12335 set state to 6Endif If (guardstate == 6) AITravel 4179, 3249, 12306 set state to 7Endif End The problem is that it says it over and over.... and then he doesn't move. I have tried with numerous names for my short but none worked. Can you please tell me where i went wrong? Or post a script which is a lot easier and has the desired outcome? As soon as I have this mastered, the better..... Link to comment Share on other sites More sharing options...
Don88 Posted March 7, 2004 Author Share Posted March 7, 2004 Ok i've got as far as my message box comes up but my npc doesn't move. Player controls are enabled though :blink: With this script:Begin CharGenWalkNPC Short guardstate If ( guardstate == 0 ) MessageBox "Wake up, wake up! Oh good, you're alive. I thought we'd killed another slave. Well, c'mon don't just stand there, follow me!" set guardstate to 1EndifIf ( guardstate == 1 ) EnablePlayerControls AITravel 3970, 4313, 12053 set guardstate to 2Endif End Link to comment Share on other sites More sharing options...
Don88 Posted March 8, 2004 Author Share Posted March 8, 2004 Never mind.......i was stupid!!! :lol: Link to comment Share on other sites More sharing options...
Geonox Posted March 8, 2004 Share Posted March 8, 2004 mabey you should remove the if guard state:If ( guardstate == 0 )MessageBox "Wake up, wake up! Oh good, you're alive. I thought we'd killed another slave. Well, c'mon don't just stand there, follow me!"set guardstate to 1Endif or try this:If ( guardstate == 0 )MessageBox "Wake up, wake up! Oh good, you're alive. I thought we'd killed another slave. Well, c'mon don't just stand there, follow me!"set guardstate to 3EndifIf ( guardstate == 1 )EnablePlayerControlsAITravel 3970, 4313, 12053set guardstate to 2Endif cos when the textbox appears the guardstate is set to 1 but if the guardstate = 1 then all the controls will be enabled : If ( guardstate == 1 )EnablePlayerControls. So I think you should try the last one mabey that one will work :) Link to comment Share on other sites More sharing options...
Don88 Posted March 9, 2004 Author Share Posted March 9, 2004 ye i got it! But thanks ne way!! ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.