Thread: [Tutorial] XSE Scripting Tutorial
View Single Post
  #460    
Old April 13th, 2010 (11:06 PM). Edited April 15th, 2010 by xGGxToiZ.
xGGxToiZ's Avatar
xGGxToiZ
>.//:SO HOT:\\.<
 
Join Date: Mar 2010
Location: We're now near the Tin Tower! . xD
Age: 19
Gender: Male
Nature: Modest
Quote originally posted by suckybowler12:
hey my script isn't working can anyone help???

#dynamic 0x800002

#org @start
lock
faceplayer
msgbox @yesno 0x5
compare 0x800D 0x1
if 0x1 goto @yes

msgbox @no2 0x6
release
end

#org @yes
msgbox @yes2 0x6
release
end

#org @yesno
= Are you stupid???

#org @yes2
= HAHAHA!!!

#org @no2
= Liar!!!



I talk to the guy and he asks the question but no matter how i answer he says "Liar!!!"
The ones in bold are the corrections. You should only have one if. (Though you can have both but this one is much less complicated.)

compare 0x800D 0x1
- 0x1 stands for "YES"

or you can do this:
#dynamic 0x800002

#org @start
lock
faceplayer
msgbox @yesno 0x5
compare 0x800D 0x0
if 0x1 goto @no

msgbox @yes2 0x6
release
end

#org @no
msgbox @no2 0x6
release
end

#org @yesno
= Are you stupid???

#org @yes2
= HAHAHA!!!

#org @no2
= Liar!!!

In this case, 0x0 stands for "no"

Hope it helps!

__________________


JOHTO ELITE FOUR


. . .