destinedjagold
Oh Hai Thar.
- 8,594
- Posts
- 17
- Years
- Stinky/Old/Fart
- On your ceiling...
- Seen Apr 17, 2025
Hi everyone! It's me again...
I finally made a trainer battle script that also moves!
YEY! Thanks thethethethe!
But now I have another scripting question...
After the sprite moved towards the player, it'll challenge him to a battle.
The script worked out A-okay! But after the battle, I want him to move away. but he didn't. So could anyone check this script..? By the way, I'm hacking PKMN Ruby...
Some images of the script...
The first one, the player is in front of the script.
The second one, the script was already in motion. Everything went out smoothly...
The third one is the problem. After he'll say that, a battle will commence. And after the battle, he won't move anymore...I want him to move back where he was standing... But if anyone can help me, could you PM me the right script. i want it to go like this... After the battle, that sprite will talk and after, the player is moved by the script one step to the left and the trainer who battled the player will move up and is gone for good!
The fourth one is the result of what will happen if I'll click the sprite after the battle...
The script...
#org $start
checkflag 0x209
if b_true goto $done
applymovement 04 $walk
pausemove 0
setflag 0x209
trainerbattle 1 0x004 $before $after $then
applymovement 04 $exit
pausemove 0
release
end
#org $before
$before 1 = ......\pWho are you...?\pHmm.., you look strong...\nBattle me then...
#org $after
$after 1 = You are strong...\pPleasure to meet you...\pI am Blitz...
#org $done
release
end
#org $then
$then 1 = For a decent-looking person,\lyou sure are strong.\pI gotta go...
#org $move
$walk 1 ; #binary 0x07 0x07 0x07 0x07 0x07 0x07 0x07 0x05 0xFE
#org $exit
$exit 1 ; #binary 0x04 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x05 0x05 0x60 0xFE
Thanks in advance!!! =3
I finally made a trainer battle script that also moves!
YEY! Thanks thethethethe!
But now I have another scripting question...
After the sprite moved towards the player, it'll challenge him to a battle.
The script worked out A-okay! But after the battle, I want him to move away. but he didn't. So could anyone check this script..? By the way, I'm hacking PKMN Ruby...
Some images of the script...
Spoiler:
![[PokeCommunity.com] Script Requests/Sharing/Discussion [PokeCommunity.com] Script Requests/Sharing/Discussion](https://i203.photobucket.com/albums/aa154/destinedjagold/test1.png)
![[PokeCommunity.com] Script Requests/Sharing/Discussion [PokeCommunity.com] Script Requests/Sharing/Discussion](https://i203.photobucket.com/albums/aa154/destinedjagold/test2.png)
![[PokeCommunity.com] Script Requests/Sharing/Discussion [PokeCommunity.com] Script Requests/Sharing/Discussion](https://i203.photobucket.com/albums/aa154/destinedjagold/test3.png)
![[PokeCommunity.com] Script Requests/Sharing/Discussion [PokeCommunity.com] Script Requests/Sharing/Discussion](https://i203.photobucket.com/albums/aa154/destinedjagold/test4.png)
The first one, the player is in front of the script.
The second one, the script was already in motion. Everything went out smoothly...
The third one is the problem. After he'll say that, a battle will commence. And after the battle, he won't move anymore...I want him to move back where he was standing... But if anyone can help me, could you PM me the right script. i want it to go like this... After the battle, that sprite will talk and after, the player is moved by the script one step to the left and the trainer who battled the player will move up and is gone for good!
The fourth one is the result of what will happen if I'll click the sprite after the battle...
The script...
Spoiler:
#org $start
checkflag 0x209
if b_true goto $done
applymovement 04 $walk
pausemove 0
setflag 0x209
trainerbattle 1 0x004 $before $after $then
applymovement 04 $exit
pausemove 0
release
end
#org $before
$before 1 = ......\pWho are you...?\pHmm.., you look strong...\nBattle me then...
#org $after
$after 1 = You are strong...\pPleasure to meet you...\pI am Blitz...
#org $done
release
end
#org $then
$then 1 = For a decent-looking person,\lyou sure are strong.\pI gotta go...
#org $move
$walk 1 ; #binary 0x07 0x07 0x07 0x07 0x07 0x07 0x07 0x05 0xFE
#org $exit
$exit 1 ; #binary 0x04 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x05 0x05 0x60 0xFE
Thanks in advance!!! =3
Last edited: