sky_queen3
Mimikyu is cute :3
- 271
- Posts
- 16
- Years
- she/her/hers
- Australia
- Seen Nov 18, 2024
Hmm, these look like fun. :D
[COLOR="DarkRed"][COLOR="Green"]//-------------------------------------
//Preperations
//-------------------------------------[/COLOR]
[COLOR="Red"]#dynamic [/COLOR][COLOR="RoyalBlue"]0x800000[/COLOR]
[COLOR="Red"]#define cAttack[/COLOR] [COLOR="RoyalBlue"]0x1D[/COLOR] [COLOR="Green"]//Change this value to use another attack[/COLOR]
[COLOR="Green"]//-------------------------------------
//Main Script
//-------------------------------------[/COLOR]
[COLOR="Red"]#org @Main[/COLOR]
lockall [COLOR="Green"]//Lock everything from moving[/COLOR]
checkattack [COLOR="Red"]cAttack[/COLOR] [COLOR="Green"]//Stores the first Pokémon who knows the attack into the variable 0x800D[/COLOR]
compare [COLOR="RoyalBlue"]0x800D 0x06[/COLOR] [COLOR="Green"]//Makes sure a Pokémon knows the attack...[/COLOR]
if [COLOR="RoyalBlue"]0x01[/COLOR] goto [COLOR="Red"]@NotKnown[/COLOR][COLOR="Green"] //If the value is 6 then no Pokémon knows the attack[/COLOR]
setanimation [COLOR="RoyalBlue"]0x00 0x800D[/COLOR] [COLOR="Green"]//The Pokémon animation is set with the Pokémon who knows the attack[/COLOR]
bufferpartypokemon [COLOR="RoyalBlue"]0x00 0x800D[/COLOR] [COLOR="Green"]//Puts the Pokémon who knows the attack into [buffer1][/COLOR]
bufferattack [COLOR="RoyalBlue"]0x01[/COLOR] [COLOR="Red"]cAttack[/COLOR] [COLOR="Green"]//Puts the attack name into [buffer2][/COLOR]
msgbox [COLOR="Red"]@Message1[/COLOR] [COLOR="RoyalBlue"]0x05[/COLOR] [COLOR="Green"]//A Yes/No box appears with the message[/COLOR]
compare [COLOR="RoyalBlue"]0x800D 0x00[/COLOR] [COLOR="Green"]//Checks in "No" was selected[/COLOR]
if [COLOR="RoyalBlue"]0x01[/COLOR] goto [COLOR="Red"]@DoNotWant[/COLOR] [COLOR="Green"]//If it was, quit[/COLOR]
msgbox [COLOR="Red"]@Message2 [/COLOR][COLOR="RoyalBlue"]0x04[/COLOR][COLOR="Green"] //"[buffer1] used [buffer2]!" >> Keep open[/COLOR]
closeonkeypress [COLOR="Green"]//Close the msgbox when a key is pressed[/COLOR]
doanimation [COLOR="RoyalBlue"]0x25[/COLOR] [COLOR="Green"]//Shows the Pokémon animation[/COLOR]
waitstate [COLOR="Green"]//Waits for the animation to complete[/COLOR]
setvar [COLOR="RoyalBlue"]0x8004 0x01[/COLOR] [COLOR="Green"]//Set up to shake screen[/COLOR]
setvar [COLOR="RoyalBlue"]0x8005 0x01[/COLOR]
setvar [COLOR="RoyalBlue"]0x8006 0x0C[/COLOR]
setvar [COLOR="RoyalBlue"]0x8007 0x02[/COLOR]
special [COLOR="RoyalBlue"]0x136[/COLOR] [COLOR="Green"]//Shake screen[/COLOR]
pause [COLOR="RoyalBlue"]0x20[/COLOR] [COLOR="Green"]//Wait 1~ second[/COLOR]
special [COLOR="RoyalBlue"]0xAB[/COLOR] [COLOR="Green"]//Call a random battle from the "Tree" section of wild Pokémon[/COLOR]
compare [COLOR="RoyalBlue"]0x800D 0x00[/COLOR] [COLOR="Green"]//Checks if a wild battle happened[/COLOR]
if [COLOR="RoyalBlue"]0x1 [/COLOR]goto [COLOR="Red"]@DoNotWant[/COLOR] [COLOR="Green"]//If not, quit[/COLOR]
waitstate [COLOR="Green"]//Wait for the battle to complete[/COLOR]
releaseall [COLOR="Green"]//Allow the player to move freely again[/COLOR]
end [COLOR="Green"]//End the script[/COLOR]
[COLOR="Green"]//-------------------------------------
//Sub Scripts
//-------------------------------------[/COLOR]
[COLOR="Red"]#org @NotKnown[/COLOR]
msgbox [COLOR="Red"]@Message3[/COLOR] [COLOR="RoyalBlue"]0x03[/COLOR]
end
[COLOR="Red"]#org @DoNotWant[/COLOR]
releaseall
end
[COLOR="Green"]//-------------------------------------
//Messages
//-------------------------------------[/COLOR]
[COLOR="Red"]#org @Message1[/COLOR]
[COLOR="Black"]= This tree may contain a Pokemon.\nUse the move [buffer2]?[/COLOR]
[COLOR="Red"]#org @Message2[/COLOR]
[COLOR="Black"]= [buffer1] used [buffer2]![/COLOR]
[COLOR="Red"]
#org @Message3[/COLOR]
[COLOR="Black"]= This tree may contain a Pokemon.\nIt may be able to be knocked out.[/COLOR][/COLOR]
It won't make a difference, except for some people not being able to understand it as easily.Yes finally :) all of these are merged but.. some of the Xse have raws in it which shouldn't be in there
Uh, how do I use the last one, my character just frezes on the spot when I walk on the green S tile. :|
@ Trebonsliw: I'm pretty sure that it searches through the whole of the player's party to see if any of them can learn it. I'm not sure where it gets the info from, though. Trial and error would be the only way to find out.