xGGxToiZ
>.//:SO HOT:\\.<
- 44
- Posts
- 15
- Years
- We're now near the Tin Tower! . xD
- Seen Nov 10, 2010
Ok so I have just 2 questions:
1) How do you remove a script once it is completed because I made a script but then all of a sudden when you step back on the same spot the script will happen again, how can I fix this.
Also how do you make it so that they activate the Running Shoes?
Spoiler:Here is the Script:
Spoiler:#dynamic 0x8006D8
#org @start
msgbox @1 0x6
applymovement 0x0F @move1
pause 0x20
msgbox @2 0x6
setflag 0x82F
special 0x171
msgbox @3 0x6
hidesprite 0x08
hidesprite 0x0C
hidesprite 0x0E
hidesprite 0x09
hidesprite 0x0B
hidesprite 0x0D
hidesprite 0x0A
applymovement 0x0F @move2
pause 0x20
hidesprite 0x0F
clearflag 0x82F
setflag 0x700
clearflag 0x701
release
end
#org @done
release
end
#org @move1
#raw 0x10
#raw 0x63
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x66
#raw 0xFE
#org @move2
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
#org @1
= Hey!\nDon't I know you?
#org @2
= Oh!\nHey\lSorry I forgot your name in all\lthis stress.\lHmmmm.....\lOh! Some bug catcher stole my\lpokedex.\lDon't worry about me I'm sure I'll\lfind it. So anyway as you know I'm\lfrom the Hoenn Region and my mom\lsent me a new pair or shoes but\lmine are still just as good I want\lyou to take them.
#org @3
= If you press B you can run, not\nthat you couldn't already...\lAnyways you can't leave Pewter\lCity until you have the Boulder\lBadge, so good luck on the battle!
Now for Question 2
2) When I walk up to try and use this script the game resets itself back to the title screen before I even reach it.
Here is the Script:
Spoiler:#dynamic 0x800000
#org @start
msgbox @1 0x6
playsong 0x157 0x0
waitmovement 0x0
applymovement 0x01 @move1
pause 0x20
msgbox @2 0x6
waitmovement 0x0
applymovement 0x01 @move2
msgbox @3 0x6
waitmovement 0x0
applymovement 0x09 @move3
pause 0x20
msgbox @4 0x6
trainerbattle 0x0 0x001 0x0 @before @defeat
msgbox @defeat 0x6
fadesong 0x112
release
end
#org @done
lock
faceplayer
checkflag 0x700
if 0x1 goto @done2
msgbox @5 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @6 0x6
release
end
#org @done2
msgbox @7 0x6
release
end
#org @take
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @7 0x6
setflag 0x700
release
end
#org @move1
#raw 0x1F
#raw 0x1E
#raw 0x20
#raw 0x1D
#raw 0xFE
#org @move2
#raw 0x33
#raw 0x33
#raw 0x33
#raw 0x33
#raw 0x65
#raw 0x60
#raw 0xFE
#org @move3
#raw 0x61
#raw 0x0B
#raw 0x0F
#raw 0x57
#raw 0x58
#raw 0x42
#raw 0x42
#raw 0x42
#raw 0x40
#raw 0x40
#raw 0x40
#raw 0x31
#raw 0x33
#raw 0x31
#raw 0x31
#raw 0x31
#raw 0x34
#raw 0x34
#raw 0x34
#raw 0x34
#raw 0x02
#raw 0x03
#raw 0xFE
#org @1
=???: Help me....!
#org @2
= ???: Whats happening?!!!
#org @3
= ???: Hello [player] how nice to finally\nmeet you!\lHa Ha Ha Ha\p... Cough ... Cough
#org @4
= Mortiqui: The name is Mortiqui I\nhave something you want but you\lwill have to fight an old man!\lha ha ha ha ha ha\p...Cough ....Cough
#org @5
= Mortiqui: Congratulations on your\nvictory... cough ...cough
#org @6
= Mortiqui: I'm sorry but there is\nnothing left\l...cough ...cough
#org @7
= Mortiqui: I'm sorry but there is\nnothing left\l...cough ...cough
#org @before
= Mortiqui: Prepare yourself!
#org @after
= Mortiqui: What! How?...\n...Cough ...Cough
#org @defeat
= Mortiqui: Congratulations you have\nproven yourself worthy.\l...Cough ...Cough
How do I fix this?
For question #1, what was the variable you used in A-map for that script tile?
Because you need to add this so that it doesn't repeat when you step on it again:
Spoiler:
#dynamic 0x8006D8
#org @start
msgbox @1 0x6
applymovement 0x0F @move1
pause 0x20
msgbox @2 0x6
setflag 0x82F
special 0x171
msgbox @3 0x6
hidesprite 0x08
hidesprite 0x0C
hidesprite 0x0E
hidesprite 0x09
hidesprite 0x0B
hidesprite 0x0D
hidesprite 0x0A
applymovement 0x0F @move2
pause 0x20
hidesprite 0x0F
clearflag 0x82F
setflag 0x700
clearflag 0x701
setvar 0x(Variable of script tile) 0x1(Or any value as long as it's not 0)
release
end
#org @start
msgbox @1 0x6
applymovement 0x0F @move1
pause 0x20
msgbox @2 0x6
setflag 0x82F
special 0x171
msgbox @3 0x6
hidesprite 0x08
hidesprite 0x0C
hidesprite 0x0E
hidesprite 0x09
hidesprite 0x0B
hidesprite 0x0D
hidesprite 0x0A
applymovement 0x0F @move2
pause 0x20
hidesprite 0x0F
clearflag 0x82F
setflag 0x700
clearflag 0x701
setvar 0x(Variable of script tile) 0x1(Or any value as long as it's not 0)
release
end
That should fix it.
For question #2, where the heck is the pointer to "#org @done"?
And the weird thing happened because you might have overwritten 0x800000.
Look: 1st script: 8006D8, 2nd Script: 800000. Overwriting is possible from the size of your script #2! Try to rewrite the script and use FSF to find a good amount of FF's.
Btw, to activate running shoes:
Add this to a script: setflag 0x(FLAG# of Running shoes) (e.g. setflag 0x860)
FR/LG: 82F
R/S: 860
E: 8C0
That should help a little! ;)