View Single Post
  #6340    
Old December 25th, 2011, 08:49 PM
AustinWolff's Avatar
AustinWolff
has left
 
Join Date: Aug 2011
Location: LA, California
Age: 17
Gender: Male
Nature: Brave
Spoiler:
Quote:
P.S I also noticed in your sig that you are wanting to learn about Level Scripts. I have a video tutorial on it if you would like to see it.
yes please! also, for XSE (ruby rom) Is there anything wrong with this script? basically there are 3 tiles, and If you step on one, there is a different set of movements (this is in EVERY game and hack) but still keeps the same script event. this one is where if you don't have 2 or more pokemon you can't pass, but if you do, he battles you and walks away. since it is 3 tiles there is 3 different scripts:


Spoiler:
Spoiler:
#dynamic 0x800000

#org @start
setvar 0x4003 0x2
goto 0x866666
end

#org @script
checkflag 0x1201
if 0x1 goto @done
compare 0x4003 0x0
if 0x1 goto @leftile
compare 0x4003 0x1
if 0x1 goto @middletile
compare 0x4003 0x2
if 0x1 goto @rightile
end

#org @rightile
applymovement 0x2 @move
applymovement 0xFF @move2
waitmovement 0x0
goto @count
end

#org @leftile
applymovement 0x2 @move3
applymovement 0xFF @move2
waitmovement 0x0
goto @count
end

#org @middletile
applymovement 0x2 @move4
applymovement 0xFF @move2
waitmovement 0x0
goto @count
end

#org @count
msgbox @1 0x6
countpokemon
compare 0x800D 0x2
if 0x4 goto @battle
msgbox @2 0x6
applymovement 0x2 @move5
applymovement 0xFF @move6
waitmovement 0x0
compare 0x4003 0x0
if 0x1 got @left2
compare 0x4003 0x1
if 0x1 goto @middle2
compare 0x4003 0x2
if 0x1 goto @right2
end

#org @left2
release
end

#org @middle2
applymovement 0x2 @move7
waitmovement 0x0
release
end

#org @right2
applymovement 0x2 @move8
waitmovement 0x0
release
end

#org @battle
msgbox @3 0x6
trainerbattle 0x0 0x1111 0x0 @win
applymovement 0x2 @move9
waitmovement 0x0
setflag 0x1201
setflag 0x1202
release
end

#org @1
= Hold on, the trainers ahead\nspecialize in double battles.

#org @2
= since you don't have at\nleast 2 pokemon, I can't\llet you pass.

#org @3
= I'm gonna have to battle\nyou to see if you are strong\lenough to face them.

#org @win
= Good job. Looks like my shift is\nover. See you later!

#org @move.......... (too much movements to put into a post)

Spoiler:
#dynamic 0x800000

#org @start
setvar 0x4003 0x1
goto 0x866666
end

Spoiler:
#dynamic 0x800000

#org @start
setvar 0x4003 0x0
goto 0x866666
end
__________________
I have left. Feel free to disable my account.