BadSamaritan
Gone Fishin'
- 148
- Posts
- 14
- Years
- Seen Jun 8, 2023
------------------------------------------------------
Last edited:
def Kernel.pbUpdateVehicle
meta=pbGetMetadata(0,MetadataPlayerA+$PokemonGlobal.playerID)
if meta
if $PokemonGlobal.diving
$game_player.character_name=meta[5] && meta[5]!="" ? meta[5] : meta[1] # Diving graphic
elsif $PokemonGlobal.surfing
$game_player.character_name=meta[3] && meta[3]!="" ? meta[3] : meta[1] # Surfing graphic
elsif $PokemonGlobal.bicycle
$game_player.character_name=meta[2] && meta[2]!="" ? meta[2] : meta[1] # Bicycle graphic
else
$game_player.character_name=meta[1] # Regular graphic
end
end
end
MetadataHome = 1
MetadataWildBattleBGM = 2
MetadataTrainerBattleBGM = 3
MetadataWildVictoryME = 4
MetadataTrainerVictoryME = 5
MetadataSurfBGM = 6
MetadataBicycleBGM = 7
MetadataPlayerA = 8
MetadataPlayerB = 9
MetadataPlayerC = 10
MetadataPlayerD = 11
MetadataPlayerE = 12
MetadataPlayerF = 13
MetadataPlayerG = 14
MetadataPlayerH = 15
MetadataOutdoor = 1
MetadataShowArea = 2
MetadataBicycle = 3
MetadataBicycleAlways = 4
MetadataHealingSpot = 5
MetadataWeather = 6
MetadataMapPosition = 7
MetadataDiveMap = 8
MetadataDarkMap = 9
MetadataSafariMap = 10
MetadataSnapEdges = 11
MetadataDungeon = 12
MetadataBattleBack = 13
MetadataMapWildBattleBGM = 14
MetadataMapTrainerBattleBGM = 15
MetadataMapWildVictoryME = 16
MetadataMapTrainerVictoryME = 17
MetadataMapSize = 18
[COLOR=Red]MetadataFlightMap = 19[/COLOR]
module PokemonMetadata
GlobalTypes={
"Home"=>[MetadataHome,"uuuu"],
"WildBattleBGM"=>[MetadataWildBattleBGM,"s"],
"TrainerBattleBGM"=>[MetadataTrainerBattleBGM,"s"],
"WildVictoryME"=>[MetadataWildVictoryME,"s"],
"TrainerVictoryME"=>[MetadataTrainerVictoryME,"s"],
"SurfBGM"=>[MetadataSurfBGM,"s"],
"BicycleBGM"=>[MetadataBicycleBGM,"s"],
"PlayerA"=>[MetadataPlayerA,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers],
"PlayerB"=>[MetadataPlayerB,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers],
"PlayerC"=>[MetadataPlayerC,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers],
"PlayerD"=>[MetadataPlayerD,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers],
"PlayerE"=>[MetadataPlayerE,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers],
"PlayerF"=>[MetadataPlayerF,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers],
"PlayerG"=>[MetadataPlayerG,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers],
"PlayerH"=>[MetadataPlayerH,"esssssss[COLOR=Red]s[/COLOR]",:PBTrainers]
}
NonGlobalTypes={
"Outdoor"=>[MetadataOutdoor,"b"],
"ShowArea"=>[MetadataShowArea,"b"],
"Bicycle"=>[MetadataBicycle,"b"],
"BicycleAlways"=>[MetadataBicycleAlways,"b"],
"HealingSpot"=>[MetadataHealingSpot,"uuu"],
"Weather"=>[MetadataWeather,"eu",["","Rain","Storm","Snow","Sandstorm","Sunny"]],
"MapPosition"=>[MetadataMapPosition,"uuu"],
"DiveMap"=>[MetadataDiveMap,"u"],
"DarkMap"=>[MetadataDarkMap,"b"],
"SafariMap"=>[MetadataSafariMap,"b"],
"SnapEdges"=>[MetadataSnapEdges,"b"],
"Dungeon"=>[MetadataDungeon,"b"],
"BattleBack"=>[MetadataBattleBack,"s"],
"WildBattleBGM"=>[MetadataMapWildBattleBGM,"s"],
"TrainerBattleBGM"=>[MetadataMapTrainerBattleBGM,"s"],
"WildVictoryME"=>[MetadataMapWildVictoryME,"s"],
"TrainerVictoryME"=>[MetadataMapTrainerVictoryME,"s"],
"MapSize"=>[MetadataMapSize,"us"],
[COLOR=Red]"FlightMap"=>[MetadataFlightMap,"u"],[/COLOR]
}
end
In theory you could do that, but then you'd have to edit the way the auto-animation (the "bobbing") works to make sure it uses the correct frames, which I think is more effort than what I've described.I have a side question though, one that could prevent all this massive amount of work...
If I were to add strictly the part Nickalooose mentioned(along with the new $PokemonGlobal.flying parts), BUT instead of a new picture, use the same diving picture, and use the "open" 8 directions to the right of it.......essentially if I could just tell it that when the player's vehicle is "flying" to have the x values of the image+64 or whatever.
Does this sound plausible?