Binary
え?
- 3,977
- Posts
- 17
- Years
- Seen Apr 7, 2014
Why does this script activate every time the map is entered when reopening the game
Spoiler:
#dynamic 0x800000
#org @start
lock
applymovement 0x1 @Move1
waitmovement 0x0
msgbox @Talk1 0x6
applymovement 0xFF @Move2
applymovement 0x1 @Move21
special 0x113
applymovement 0x7F @Move2
waitmovement 0x0
special 0x114
applymovement 0x3 @Exclaim
applymovement 0xFF @Turn1
pause 0x20
msgbox @Talk2 0x6
applymovement 0x3 @Turn2
applymovement 0xFF @Turn2
waitmovement 0x0
msgbox @Talk3 0x6
applymovement 0x1 @Turn3
waitmovement 0x0
msgbox @Talk4 0x6
applymovement 0x1 @Turn4
waitmovement 0x0
msgbox @Talk5 0x6
additem 0x109 0x1
fanfare 0x101
preparemsg @Give
waitmsg
waitfanfare
applymovement 0x1 @Move3
waitmovement 0x0
fanfare 0x101
preparemsg @Give2
waitmsg
waitfanfare
msgbox @Talk6 0x6
applymovement 0xFF @Turn1
applymovement 0x3 @Turn3
waitmovement 0x0
msgbox @Talk7 0x6
applymovement 0x3 @Move4
waitmovement 0x0
hidesprite 0x3
setflag 0x1020
setvar 0x8006 0x1
release
end
(All strings are correct and accounted for)
Script activates once, re-entering the map does nothing. However if I save and exit, then reload the game the script activates again (except the sprite that was hidden stays hidden).
Level Script data:
Flag: 8006 Value: 0000
It is the only level script on that map.
Have you used comparevar in that script?
If you have, use a flag too. Else the script will repeat.
@Hyouri:
I meant the dynamic offset.