- 1,511
- Posts
- 10
- Years
- Seen today
I'm trying to implement a Pokemon Mount system in my game and want to add more spritesheets in the player's metadata to reflect these new forms of transportaion. I've been able to implement the effect of the mounts (basically by working off of the existing Bike scripts), but the new spritesheets I want the game to use don't appear. It just defaults to the trainer's standing spritesheet. I can't figure out how to have my new spritesheets display instead.
This is what I've done:
Then I just basically copy/pasted the bicycle scripts using $PokemonGlobal.mount instead of $PokemonGlobal.bicycle.
After doing all that, I've been able to recreate the Bike (I just made it accessible from the party menu, like an HM, rather than an Item). But when I use it, the graphics I want the game to use don't show up. My assumption is that Essentials doesn't read higher than 7 items in the player's metadata, which is why it's ignoring anything I plug in after the defaults. Either that, or I'm missing a line somewhere that is causing the game to default to the first spritesheet because it doesn't recognize my new graphics. Whatever the issue is, I would really appreciate some help in solving this.
This is what I've done:
- I placed the new spritesheets in the Graphics/Characters folder, along with all of the other player sprites.
- I plugged the names of my new spritesheets into the metadata PBS file, following the defaults.
- In PField_Map, under the class PokemonGlobalMetdata, I added this under the bicycle line:
Code:
attr_accessor :mount
- In PField_Map, under def initialize, I added this under the bicycle line:
Code:
@mount = false
- In PField_Field, under def Kernel.pbUpdateVehicle, I added this under the bicycle line:
Code:
elsif $PokemonGlobal.mount $game_player.character_name=pbGetPlayerCharset(meta,8)
- In Editor, under the module PlayerProperty, I added this under the line for surf-fishing:
Code:
[_INTL("Mount"),CharacterProperty, _INTL("Mounted character sprite.")]
Then I just basically copy/pasted the bicycle scripts using $PokemonGlobal.mount instead of $PokemonGlobal.bicycle.
After doing all that, I've been able to recreate the Bike (I just made it accessible from the party menu, like an HM, rather than an Item). But when I use it, the graphics I want the game to use don't show up. My assumption is that Essentials doesn't read higher than 7 items in the player's metadata, which is why it's ignoring anything I plug in after the defaults. Either that, or I'm missing a line somewhere that is causing the game to default to the first spritesheet because it doesn't recognize my new graphics. Whatever the issue is, I would really appreciate some help in solving this.