View Single Post
Old January 13th, 2009 (2:04 AM).
Larsie13 Larsie13 is offline
Crystal Tier
Join Date: Oct 2006
Location: The Netherlands
Age: 24
Nature: Modest
Posts: 159
I've seen a few errors. Changes are bold.
Quote originally posted by Conqueror179:
I can't get this to work. It's my first try at a level script.
#dynamic 0x2DDB4C

#org @start
checkflag 0x1000
if 0x0 goto @show
goto @done
end 'No release, because you didn't lock anything yet.

#org @show
lockall 'Lock only applies for a Person script. (When you talk to someone, it locks that person.)
showsprite 0x[People number, not People ID...]
applymovement 0x[same as above] @walk
waitmovement 0x0 'Always 0x0
msgbox @pokemon 0x6
givepokemon 0x17E 0x5 0x8B 0x0 0x0 0x0
setflag 0x828
fanfare 0x13E
msgbox @got 0x6
applymovement 0x1000 @walkaway
setvar 0x4033 0x1
setflag 0x1000
releaseall 'With lockall, you have to use releaseall

#org @walk
#raw 0x60 0x0D 0x0F 0x0F 0x0F 0x0F 0x0F 0x01 0xFE

#org @pokemon
= [blue_fr]Warren: Ah, [player].\nYour mother had invited\p me over to talk about\nyou getting you a Pokemon!\pI have brought one for\n you to save you the hassle\p of catching one yourself.\nHere you go. 'Use \p after \n, otherwise the text won't be displayed.

#org @got
= [red_fr] [player] recieved Aron!

#org @walkaway
#raw 0x0C 0x0C 0x0C 0x0C 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0C 0x60 0xFE

#org @done

I've got the persons ID at 1000. I made it Script type 2 in the A-Map header. Flag is 4033, value is 0000, the script offset is in offset 2. The script is supposed to happen when you walk down the stairs into the first floor of your house but it restarts the game if you enter the stairs.