PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive

Notices

Archive Old threads that serve no purpose are here.

 
 
Thread Tools Display Modes
Old 1st August 2014, 04:50 PM   #1
Dark Sneasel
Anti-Swag
 
Join Date: Oct 2013
Location: Miami, FL
Age: 18
Posts: 42
Dark Sneasel
Default Dark Sneasel's Public Scripts

Hi guys, I'm Dark Sneasel, and I wanna share scripts/parts of script I made that could be useful to some people. As of now they are for emerald but they may have fire red support. Okay, so here they are, I only have 2 as of now.

Choose Pokemon for Battle Script
(like a script where you battle, not a battle script)



Code:
#dynamic 0xE40000
#org @start
lock
faceplayer
msgbox @1 0x6 //just had that there, obviously not mandatory
goto @choose
end

#org @choose
special 0x28 //stores party in RAM
fadescreen 0x1
special 0x2A //Pokemon choosing screen
waitstate
compare LASTRESULT 0x0
if 0x5 goto @it //if all went well, like no cancelling, go to @it 
special 0x29 //restores party (In my case it won't be mandatory since I'm forcing the player to choose in @no, obviously you can change that like in the steven battle where he tells you to get ready or something
goto @no //if something bad did happen, goto @no

#org @it
special 0xFB //it updates your party I guess? Without it I still had 6 pokemon
msgbox @3 0x6
trainerbattle 0x3 0x10 0x0 @win
msgbox @4 0x6
special 0x29 //restore your party
release
end

#org @win
= Oh no.

#org @4
= I will now return your party.

#org @3
= Battle begin.

#org @no
msgbox @2 0x6
goto @choose //here for all of @no you can make it do something else, and it will be fine because your party has already been restored back with special 0x29

#org @2
= I said choose.

#org @1
= Choose.
and without my comments, and erased all of my stuff

Spoiler:
Code:
#dynamic 0xE40000
#org @start
lock
faceplayer
goto @choose
end

#org @choose
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto @it
special 0x29
goto @no

#org @it
special 0xFB
INSERT YOUR STUFF HERE
special 0x29
release
end

#org @no


NOTE:As of now, losing the battle will leave you only with the pokemon you choose. I guess a solution for that would be putting special 0x29 in a level script, perhaps you can put a sethealingplace command IN the script somewhere, so when they lose they will go to that one and have a special 0x29 there. Sorry about that.

And my other script

Show cool animation for pokemon that is not in your party



go to 0:21

What it does: Okay, so you know when you use cut or an HM, your pokemon appears with the cool little background? Well, I found out how to make that happen with pokemon that aren't in your party. This could be good for scenes that a villain uses a pokemon to do something.
Code:
special 0x28 //stores party in RAM
callasm 0x8E40AA1 //Hackmew's routine, erases pokemon from party
callasm 0x8E40AA1
callasm 0x8E40AA1
callasm 0x8E40AA1
callasm 0x8E40AA1
callasm 0x8E40AF1 // Hackmew's routine, erases last pokemon from party
givepokemon 0x15F 0xA 0x0 0x0 0x0 0x0 //the pokemon you want to appear
checkattack 0x96 //like you would in an HM script, but put an attack you're 100% sure it has. Make the pokemon a level 1 if you want.
bufferpokemon 0x0 LASTRESULT
setanimation 0x0 LASTRESULT
doanimation 0x25
waitstate
special 0x29 //restores your party
Bugs I know: The player does an animation as well (raises pokeball). To fix that, move the camera 7 tiles or more to where you can't see the player like I did and then the script. Oh, it's for emerald, and for FR I haven't tried it, but if you wanna do it, replace special 0x28 to 0x27 and 0x29 to 0x28. Again, I haven't tried it, but it SHOULD work. Also, the doanimation makes a noise, I'm trying to find one that doesn't.
Dark Sneasel is offline  
Sponsored Links
Old 1st August 2014, 05:25 PM   #2
RocketLeader
Pokemon Rocket Strike creator
 
RocketLeader's Avatar
 
Join Date: Nov 2013
Location: Mystery Zone
Posts: 73
RocketLeader
Default

Thanks for these scripts. I hope you share more of these, especially with FR support
__________________
http://www.pokemonhackersonline.com/...034#post128034
Check out my Pokemon Hack "Pokemon Rocket Strike"!
RocketLeader is offline  
Likes Dark Sneasel liked this post
 

Tags
dark, public, scripts, sneasel, [General]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:16 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts