Following from my previous request (Thanks, ATT_Turan!) there is one more change I'd like to do to my game's battle log messages. When an enemy or actor is affected by a state, certain messages appear during combat. However, since my game is in Spanish, the adjectives used in those messages end differently depending on the gender of the actor or enemy. It's '-o' for masculine and '-a' for femenine ones. The database only lets me do this:
I'd like to make a plugin that would change the message depending on the gender of the affected battler. Since every gendered state ends in the same way ("o/a!"), I thought the most efficient way to do it would be by removing that part of the message from the database, then adding 'o!' or 'a!' depending on the battler.
This would be done for all three functions: 'displayAddedStates', 'displayCurrentStates' and 'displayRemovedStates', unless there's a blank space. The first one doesn't need to draw a different message depending on whether an actor or enemy is affected, because the 'inflicted' message is always the same.
I only need to change about 20 states, and there's a dozen female actors, so I figured I can just use IDs to identify those. There's a looot of enemies, however, and others have recommended the use of notetags to identify female enemies. ...I don't know how to use them, though, so I'd need some help!
I assume the code needs to look something like this, with small changes depending on the function. In this example, I'm changing the 'inflicted' text of states 4, 5 and 6. Otherwise, it uses the normal message from the database.
I'd appreciate some help to get this working. Sorry for the long post!
I'd like to make a plugin that would change the message depending on the gender of the affected battler. Since every gendered state ends in the same way ("o/a!"), I thought the most efficient way to do it would be by removing that part of the message from the database, then adding 'o!' or 'a!' depending on the battler.
This would be done for all three functions: 'displayAddedStates', 'displayCurrentStates' and 'displayRemovedStates', unless there's a blank space. The first one doesn't need to draw a different message depending on whether an actor or enemy is affected, because the 'inflicted' message is always the same.
I only need to change about 20 states, and there's a dozen female actors, so I figured I can just use IDs to identify those. There's a looot of enemies, however, and others have recommended the use of notetags to identify female enemies. ...I don't know how to use them, though, so I'd need some help!
I assume the code needs to look something like this, with small changes depending on the function. In this example, I'm changing the 'inflicted' text of states 4, 5 and 6. Otherwise, it uses the normal message from the database.
I'd appreciate some help to get this working. Sorry for the long post!