View Single Post
  #5994    
Old August 5th, 2011 (12:53 PM).
[T]ouko's Avatar
[T]ouko [T]ouko is offline
Dedicated Scripter!
 
Join Date: Jul 2011
Gender: Female
Posts: 46
Quote originally posted by ruup20:
#dynamic 0x800240
#org @start
lock
msgbox @text1 0x5
if 0x1 goto @fine
if 0x0 goto @notfine
release
end

#org @text1
= Beep-beep!\nBeep-beep!\lIt's Ash.\lAsh: Hello [player]. How are\lyou doing?

#org @fine
= That's nice. I tought you\nwould be nervous. You get your\lfirst pokemon today. Isn't it?\lPlease chose wisely! My friend\lDawn is coming to help you to\lbecome a Pokemon trainer.\lJust like me. Bye-bye!

#org @notfine
= Oh. I think you are nervous.\nToday you get your first Pokemon.\lPlease choose wisely.My friend\lDawn is coming to help you to\lbecome a Pokemon trainer.\lJust like me. Bye-bye!


What's wrong with this script? It freezes when I step on it.
You forgot something.

Msgbox @text 0x5
Compare lastresult 0x1
If 0x1 goto @fine
And here you put what happens whn no is pressed. You don't need an extra line for if 0x0....

You forgot the compare line, which compares the lastresult (yes if you pressed yes, no if not) witn 0x1. If it is 0x1, meaning you pressed yes, it will go to fine. If not it will continue.
__________________


Credits to: .Mini