The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Fire Red: Nurse Joy script (https://www.pokecommunity.com/showthread.php?t=385002)

Mystelex December 7th, 2016 4:24 PM

Fire Red: Nurse Joy script
 
Hi, so I'm using JPAN's hacked engine and can't find the Nurse Joy script anymore. I tried making one, but it didn't really turn out to be that good...

So does anyone here have the script so that I can directly complie into the ROM? Or could help me with the script, like which special commands to use for the animations?

And yep, I know how to use sethealing place. ^^

Here's what my poor script looks like right now-
https://www.youtube.com/watch?v=E5JemJGeqss
2:09

I wanna make it look like the default one from Fire Red.

Thank you!
~ Daman

Squeetz December 8th, 2016 12:59 AM

Quote:

Originally Posted by Daman (Post 9511472)
Hi, so I'm using JPAN's hacked engine and can't find the Nurse Joy script anymore. I tried making one, but it didn't really turn out to be that good...

Here:
Spoiler:
//---------------
#dynamic 0x856F7D
#org @start
lock
faceplayer
call @snippet1
release
end

//---------------
#org @snippet1
preparemsg @string1 //"Welcome to our POKéMON CENTER!\pWo..."
waitmsg
multichoice 0x13 0x8 0x0 0x2
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto @snippet3
compare 0x8000 0x1
if 0x1 goto @snippet4
compare 0x8000 0x7F
if 0x1 goto @snippet4
end

//---------------
#org @snippet3
cmdc3 0xF
preparemsg @string2 //"Okay, I'll take your POKéMON for a..."
waitmsg
call @snippet5
goto @snippet7

//---------------
#org @snippet4
msgbox @string3 MSG_KEEPOPEN //"We hope to see you again!"
return

//---------------
#org @snippet5
applymovement LASTTALKED @move1
waitmovement 0x0
doanimation 0x19
checkanimation 0x19
applymovement LASTTALKED @move2
waitmovement 0x0
special 0x0
return


//---------------
#org @snippet7
preparemsg @string4 //"Thank you for waiting.\nWe've rest..."
waitmsg
applymovement LASTTALKED @move3
waitmovement 0x0
msgbox @string3 MSG_KEEPOPEN //"We hope to see you again!"
return


//---------
// Strings
//---------
#org @string1
= Welcome to our POKéMON CENTER!\pWould you like me to heal your\nPOKéMON back to perfect health?

#org @string2
= Okay, I'll take your POKéMON for a\nfew seconds.

#org @string3
= We hope to see you again!

#org @string4
= Thank you for waiting.\nWe've restored your POKéMON to\lfull health.


//-----------
// Movements
//-----------
#org @move1
#raw 0x2F //Face Left (Delayed)
#raw 0xFE //End of Movements

#org @move2
#raw 0x2D //Face Down (Delayed)
#raw 0xFE //End of Movements

#org @move3
#raw 0x5B //mov5B
#raw 0x1A //Delay3
#raw 0xFE //End of Movements

This should work with his engine.

Mystelex December 8th, 2016 3:12 AM

Quote:

Originally Posted by Squeetz (Post 9511891)
Here:
Spoiler:
//---------------
#dynamic 0x856F7D
#org @start
lock
faceplayer
call @snippet1
release
end

//---------------
#org @snippet1
preparemsg @string1 //"Welcome to our POKéMON CENTER!\pWo..."
waitmsg
multichoice 0x13 0x8 0x0 0x2
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto @snippet3
compare 0x8000 0x1
if 0x1 goto @snippet4
compare 0x8000 0x7F
if 0x1 goto @snippet4
end

//---------------
#org @snippet3
cmdc3 0xF
preparemsg @string2 //"Okay, I'll take your POKéMON for a..."
waitmsg
call @snippet5
goto @snippet7

//---------------
#org @snippet4
msgbox @string3 MSG_KEEPOPEN //"We hope to see you again!"
return

//---------------
#org @snippet5
applymovement LASTTALKED @move1
waitmovement 0x0
doanimation 0x19
checkanimation 0x19
applymovement LASTTALKED @move2
waitmovement 0x0
special 0x0
return


//---------------
#org @snippet7
preparemsg @string4 //"Thank you for waiting.\nWe've rest..."
waitmsg
applymovement LASTTALKED @move3
waitmovement 0x0
msgbox @string3 MSG_KEEPOPEN //"We hope to see you again!"
return


//---------
// Strings
//---------
#org @string1
= Welcome to our POKéMON CENTER!\pWould you like me to heal your\nPOKéMON back to perfect health?

#org @string2
= Okay, I'll take your POKéMON for a\nfew seconds.

#org @string3
= We hope to see you again!

#org @string4
= Thank you for waiting.\nWe've restored your POKéMON to\lfull health.


//-----------
// Movements
//-----------
#org @move1
#raw 0x2F //Face Left (Delayed)
#raw 0xFE //End of Movements

#org @move2
#raw 0x2D //Face Down (Delayed)
#raw 0xFE //End of Movements

#org @move3
#raw 0x5B //mov5B
#raw 0x1A //Delay3
#raw 0xFE //End of Movements

This should work with his engine.

Sounds good! I'll try it today and let you know, thank you!


All times are GMT -8. The time now is 9:18 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.