- 2
- Posts
- 8
- Years
- Seen May 30, 2024
Hey, I have a problem that is breaking my head, I have been trying to make the surf sprite different depending on the pokemon, I used a code of Rot8er_ConeX, which for now goes well, does what it has to do, but ... example when I have two pokemon that can access surf at the party, gyarados and sharpedo, sharpedo is the one that uses surf, but the sprite changes to gyarados.
The code starts with gyarados, the question is is there any way that the script will check which of the two has surf and depending on which pokemon the sprite has, change to said pokemon?
I know it's something complex but good to see if there is luck.
I can not put links, sorry. The title of the original post is this "Add Common Event When Choosing To Surf"
Thanks and sorry, i to use google translate for my bad english ;)
The code starts with gyarados, the question is is there any way that the script will check which of the two has surf and depending on which pokemon the sprite has, change to said pokemon?
I know it's something complex but good to see if there is luck.
Code:
if pbHasSpecies?(:GYARADOS)
trainer=$Trainer if !trainer
outfit=trainer ? trainer.outfit : 0
if outfit==0
$game_player.character_name=Settings::GyaraSurfFileName[$PokemonGlobal.playerID]
else
$game_player.character_name=Settings::GyaraSurfFileName[$PokemonGlobal.playerID]+"_"+outfit.to_s
end
elsif pbHasSpecies?(:SHARPEDO)
trainer=$Trainer if !trainer
outfit=trainer ? trainer.outfit : 0
if outfit==0
$game_player.character_name=Settings::SharpedoSurfFileName[$PokemonGlobal.playerID]
else
$game_player.character_name=Settings::SharpedoSurfFileName[$PokemonGlobal.playerID]+"_"+outfit.to_s
end
I can not put links, sorry. The title of the original post is this "Add Common Event When Choosing To Surf"
Thanks and sorry, i to use google translate for my bad english ;)