Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Architecture : Scripting problem (question/options in a use script)
New Topic New Poll Post Reply
Poster Message
Remlin
Level: Master Delver
Rank Points: 181
Registered: 04-28-2005
IP: Logged
icon Scripting problem (0)  
I'm trying a set-up where using a weapon brings up a question dialog. I've set a weapon up with "Equipment Swap Weapon QuestionWeapon"

The QuestionWeapon character has this default script:
  Each use Cmd
  Go to End
Label Cmd
  Answer option "1",label1
  Answer option "2",label2
  Question What?
  Speech "Oops",Normal,Player,0,.
  Go to End
Label label1
  Speech "1",Normal,Player,0,.
  Go to End
Label label2
  Speech "2",Normal,Player,0,.
  Go to End
Label End
To me, this looks like using the sword should prompt the player to choose 1 or 2, and then the player will say either "1" or "2" accordingly.

In actuality, the player says "Oops" and then on the next turn, he follows up with either "1" or "2".

Why's this happen?

09-14-2009 at 09:52 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
Fang
Level: Master Delver
Avatar
Rank Points: 175
Registered: 07-25-2008
IP: Logged
icon Re: Scripting problem (+2)  
This has come up a few times, even personally experiencing the midst of it (before we had a solution), it's a scripting problem with questions and answer options in characters. Simply add in a Cutscene of 1 milisecond per turn after Label CMD, and add Wait 1 after Question, that way it will wait instead of doing what's immediately after, which is the speech. That way it will wait a turn, which is when you choose, then will say oops. Make sure you put a Cutscene 0 after each "end" of choices.

____________________________
"Imagination is more important than knowledge." -Albert Einstein

[Last edited by Fang at 09-14-2009 09:58 PM]
09-14-2009 at 09:56 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Architecture : Scripting problem (question/options in a use script)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.