Quote:
Originally Posted by Teruri
Code:
#dynamic 0x71AABF
#org @start
lock
checkflag 0x828
if b_true goto @recieved
givepokemon 133 5 0 0 0 0
setflag 0x828
release
end
#org @recieved
release
end
This should give the player a eevee (only once) if they live their room. However, It freezes te game! I tried everything I could think off.
This is my first day of scripting in hacks (actualy the first time I hack). The stupid thing is that I worked, then I wanted to add a give item so the player has pokéballs but then the script stoped working. I changed some things around, but now I can't get back to the working script.
Memo to self: always save your script.
Could someone point me in the right deriction?
|
well just like neo had:
#dynamic 0x71AABF
#org @start
checkflag 0x828
if b_true goto @recieved
givepokemon 133 5 0 0 0 0
fanfare 0x13E
msgbox @got
boxset 0x2
waitfanfare
setflag 0x828
release
end
#Org @got
= \c\h01\h02You recieved a EEVEE!
#org @recieved
release
end
but without the 0x0 just 0 since XSE will change that when you compile...
but if u have that and it still doesnt work (which it should NOT) there is something in A-map that you must do...
if you are putting it on a script tile you must change the Var number and the Unknown number
the most common is 0003 [Unknown] and 4050 [Var Number] (5040 should work for Var number too)