View Single Post
  #8119    
Old April 16th, 2013, 11:41 PM
Shadowraze's Avatar
Shadowraze
Love and Peace
 
Join Date: Apr 2013
Location: Philippines
Age: 15
Gender: Male
Nature: Adamant
Send a message via Skype™ to Shadowraze
Quote:
Originally Posted by lemonzap View Post
This script is an S-tile script and only freezes the player for a split second and plays the exclamation sound. Any ideas whats wrong?
Spoiler:
#dynamic 900000
#org @start
lock
msgbox @wait 0x4
applymovement 0x2 @catch
waitmovement 0x0
msgbox @ask 0x5
compare 0x800D 0x1
if 0x1 goto @yes
compare 0x800D 0x0
if 0x1 goto @no
release
end

#org @wait
= Kate!/pWait!

#org @ask
= will you?

#org @yes
sound 0x15
applymovement 0x2 @yay
waitmovement 0x0
msgbox 0x4 @gameover

#org @no
msgbox 0x3 @oh
applymovement 0x2 @sulk
waitmovement 0x0
msgbox 0x4 @gameover

#org @gameover
= GAME OVER

#org @oh
= oh...

#org @yay
#raw 0x58
#raw 0x73
#raw 0x73
#raw 0x73
#raw 0x73
#raw 0xFE

#org @sulk
#raw 0x00
#raw 0x02
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0xFE

#org @catch
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0x38
#raw 0xFE
Yes you didn't 0x on 900000. It should be 0x900000

And also you didn't put a closeonkeypress command after the msgbox command but if you don't want to put that change 0x4 to 0x6. Also put a release and end to @yes and @no.

Oh and also didn't you said you were using an S tile? You have to put a variable in it. Try reading this tut I'm sure it will help you. http://www.pokecommunity.com/showthread.php?t=279345

Just put a setvar in the end of your script so for example setvar 0x4075 0x1 and then on A-map put in 4075 on the Var Number and it should work.