Hello, folks. So, 1158 asked me to implement Dark Sneasel's ratchet system of the BW2 Repel System. There's one slight hitch. It doesn't look for what kind of repel you have. Here's the script Dark Sneasel made:
See. It doesn't look for what repel is expired. It uses the Yes/No message box. So, its a bit hard to explain, so, I'll include some pics.
LET'S TEST IT!!
Okay, so first I use Repel:
So, I run around, and after it expires, this will come up:
YAY! It worked! BUT, let's use Max Repel this time, and it expired!!
This came up again!
Repel is not what we need! We need Max Repel! Well, then, let's press B, BUT this happens:
WE DON'T NEED SUPER REPELS, WE NEED MAX REPEL! Let's press B, again!
Yay! It said Max Repel now!!
Now, do you got it? The script doesn't look for what kind of repel you used...
So, just don't be annoyed by that feature!
bye!
Code:
#dynamic 0xE40000
#org @start
lockall
msgbox @woreoff 0x6
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @Repel
msgbox @2 0x5
compare 0x800D 0x1
if 0x1 goto @Super
msgbox @3 0x5
compare 0x800D 0x1
if 0x1 goto @Max
releaseall
end
#org @Repel
checkitem 0x56 0x1
compare 0x800D 0x1
if 0x4 goto @rp
msgbox @notenough 0x6
releaseall
end
#org @notenough
= You don't have enough.
#org @rp
sound 0x2F
msgbox @usedr MSG_SIGN
removeitem 0x56 0x1
setvar 0x4021 100
release
end
#org @usedr
= [player] used a Repel.
#org @1
= Use a Repel?
#org @2
= Use a Super Repel?
#org @3
= Use a Max Repel?
#org @Super
checkitem 0x53 0x1
compare 0x800D 0x1
if 0x4 goto @sp
msgbox @notenough 0x6
releaseall
end
#org @sp
sound 0x2F
msgbox @useds MSG_SIGN
removeitem 0x53 0x1
setvar 0x4021 200
releaseall
end
#org @useds
= [player] used a Super Repel.
#org @Max
checkitem 0x54 0x1
compare 0x800D 0x1
if 0x4 goto @mp
msgbox @notenough 0x6
releaseall
end
#org @mp
sound 0x2F
msgbox @usedm MSG_SIGN
removeitem 0x54 0x1
setvar 0x4021 250
release
end
#org @usedm
= [player] used a Max Repel.
#org @woreoff
= The Repel's effect wore off[.]
See. It doesn't look for what repel is expired. It uses the Yes/No message box. So, its a bit hard to explain, so, I'll include some pics.
LET'S TEST IT!!
![[PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released) [PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released)](https://i.imgur.com/MM2o6S1.png)
Okay, so first I use Repel:
![[PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released) [PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released)](https://i.imgur.com/FBPeU9c.png)
So, I run around, and after it expires, this will come up:
![[PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released) [PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released)](https://i.imgur.com/syvvyrO.png)
YAY! It worked! BUT, let's use Max Repel this time, and it expired!!
This came up again!
![[PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released) [PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released)](https://i.imgur.com/syvvyrO.png)
Repel is not what we need! We need Max Repel! Well, then, let's press B, BUT this happens:
![[PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released) [PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released)](https://i.imgur.com/lqppWSI.png)
WE DON'T NEED SUPER REPELS, WE NEED MAX REPEL! Let's press B, again!
![[PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released) [PokeCommunity.com] Pokemon Mega Power (Completed Beta 5.75 Released)](https://i.imgur.com/04wQFPK.png)
Yay! It said Max Repel now!!
Now, do you got it? The script doesn't look for what kind of repel you used...
So, just don't be annoyed by that feature!
bye!
Last edited: