View Single Post
  #45    
Old February 2nd, 2009, 02:40 PM
Mourgrim's Avatar
Mourgrim
Beginning Trainer
 
Join Date: Nov 2008
Age: 22
Gender:
Nature: Rash
Hello. I've been having troubles with yet another script that's confusing me quite a bit.

The script I'm trying to make has a man step forward twice, inform the player that they can't leave without a pokemon, have the player step to the right twice to where the pokeball is, have them take it, and leave without the man stopping them. Of course, there's a 'bit' more to it when you read the actual scripts, but that's the gist of it all. If anyone can help, again, I'd greatly appriecate it.

The Movement Script:
#dynamic 0x800000

#org @start
checkflag 0x1000
if 0x1 goto @done
if 0x0 goto @movement
release
end

#org @movement
msgbox @hey 0x2
applymovement 0x00 @move
waitmovement 0x0
applymovement 0xFF @move2
waitmovement 0x0
msgbox @take 0x2
applymovement 0x00 @move3
waitmovement 0x0
setflag 0x1001
release
end

#org @done
release
end

#org @move
#raw 0x1E
#raw 0x1E

#org @move2
#raw 0x13
#raw 0x13

#org @move3
#raw 0x13

#org @hey
= Hey, you can't leave\nwithout having something\lto protect you!

#org @take
= Take my EEVEE. Raise it\nwell, and let it evolve\linto whatever you wish it\lto become!

The Man's Script:
#dynamic 0x800010

#org @start
checkflag 0x1002
if 0x1 goto @good
if 0x0 goto @omg
release
end

#org @good
msgbox @leave 0x2
applymovement 0x00 @move
waitmovement 0x0
msgbox @goodluck 0x2
release
end

#org @omg
msgbox @takeit 0x2
release
end

#org @move
#raw 0x14
#raw 0x0C

#org @leave
= Okay, you may leave.

#org @goodluck
= Goodluck out there!

#org @takeit
= Would you just take it?

The Pokeball's Script:
#dynamic 0x800020

#org @start
checkflag 0x1001
if 0x1 goto @take
if 0x0 goto @done
release
end

#org @take
givepokemon 0x133 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @received 0x4
waitfanfare
closeonkeypress
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x1000
setflag 0x1002
release
end

#org @done
release
end

#org @received
= You received EEVEE!

If you see any problems with other parts of what's going on, I'd appreciate it if that was mentioned as well.
Reply With Quote