View Single Post
  #7146    
Old August 4th, 2012 (09:05 AM). Edited August 4th, 2012 by minor.
minor
Beginning Trainer
 
Join Date: Jul 2012
Gender: Male
ok so i've been scripting for about 10 days (literally) and i've come up with a few questions i just can't figure out. so i thought i'll ask them here and hopefully get some answers!

A) what does altering the var number on tile scripts do? (the ones you walk on)
B) my givepokemon scripts won't work and i don't know why [not asking for one] here mine is
[spoiler]

#dynamic 0x800000
#org @start

lock
faceplayer
msgbox @talk 0x6
pause 0x1
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
release
end

#org @talk
= here, take this

[neither will my give item scripts, but my additem ones do.]

when doing flags, my events happen again if i go through a warp and then come back.
i assume it has something to do with the 0x828 flag. but i don't know what that even means!

anyway any help is appreciated!
-connor

okay me again.

i tryed makign a script (complicated for me).

it's ment to: talk to them, ask a yes/no question. yes goes to a fight and then they move. no ends the script.

problems: atm i doesn't work at all, i think LASTRESULT isn't even a command.?????



anyways here the script. appreciate it if you could point out what's wrong and how i can fix it? thanks.



#dynamic 0x800000
#org @start

checkflag 0x200
if 0x1 goto @done
faceplayer
msgbox @talk1 0x6
pause 0x1
message @talk2 0x5
callstd 1
if 0x1 goto @fight
else goto @no
end

#org @done
lock
faceplayer
msgbox @talk3 0x6
release
end




#org @talk1
= Hello there, i am stood here\nrecruiting for the new breeders\lguild that is opening.\pTo join you must prove your woth as\na POKEMON trainer and beat me in a\lshort battle.

#org @talk2
= Do you wish to join?

#org @talk3
= You may continue down this road,\nthen speak to my partner.

#org @talk4
= Go on, just down the road.

#org @fight
faceplayer
trainerbattle 0x0 0x02 0x0 @challenge @defeat
pause 0x1
applymovement 0x4 @move
waitmovement 0x4
msgbox @talk4 0x6
setflag 0x200
end


#org @no
end

#org @challenge
= Are you ready?

#org @defeat
= This was good, and you have\ndisplayed your worth as a trainer.\pI'm sure you'll be an asset to the\nguild.

#org @move
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x13
#raw 0xFE


-connor