View Single Post
  #7167    
Old August 7th, 2012 (04:04 PM).
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote originally posted by SpadeEdge16:
can someone tell me whats wrong here? I'm trying to make it so if they player selects "no" he just ends the script, but if they player chooses "yes" they warp directly into the lab. but when i talk to oak, the correct thing happens when i choose "no", but when i choose "yes" he also goes to the no part of the script. I dunno why? :/

#dynamic 0x0034EBA2
#org @start
lock
faceplayer
msgbox @1 0x5
compare 0x1 0x0
if 0x1 goto @warp

msgbox @2 0x6
release
end

#org @warp
msgbox @3 0x6
closeonkeypress
warp 0x4 0x3 0x0 0x6 0xC
setvar 0x4055 0x2
release
end

#org @1
= Oh! For once a trainer that\ndoesn't run off without me! Would\lyou like to follow me to my lab?

#org @2
= Very well then, just don't try and\ngo running off on your own!

#org @3
= Excellent! Let's go!
Well everything is good except for compare 0x1 0x0, just change it to compare 0x800D 0x1, as ASH493 said LASTRESULT is not anymore recognized in the latest version of XSE, it has now been changed to 0x800D

So for you to get the script easily here's the working script...
Quote:
#dynamic 0x0034EBA2
#org @start
lock
faceplayer
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @warp

msgbox @2 0x6
release
end

#org @warp
msgbox @3 0x6
closeonkeypress
warp 0x4 0x3 0x0 0x6 0xC
setvar 0x4055 0x2
release
end
Quote:
#org @1
= Oh! For once a trainer that\ndoesn't run off without me! Would\lyou like to follow me to my lab?

#org @2
= Very well then, just don't try and\ngo running off on your own!

#org @3
= Excellent! Let's go!
Hope this helps... xD
__________________