Hey everyone, I am once again asking for support from the community.
In a fan game I’m developing, I was able to get working a mechanic called “Favorite Food”. How it works is that by giving an actor their favorite food item (go figure), they gain additional effects such as extra health, MP, TP, etc.
Using the script option and common events, I was able to get it to work nicely when the player is out of battle. In battle however, I have hit a wall.
I choose the item that a character likes on 1 turn. Common event plays, no issue. I choose a different item a different character likes in another turn. Common event plays, no issue. However, if I choose two different items for two different characters to consume on 1 turn, the common event plays only once, and only for the character who goes first.
My question is this: is there a way to get a common event to play more than once on 1 turn, or am I missing something?
The way my common event works is this:
Control Variable: ID of item last used
Control Variable: ID of actor that the item was used on
If: the time used last turn is ##,
If: If the actor id it’s used on is ##
If Both conditions are met, then the script plays:
Script: Add Extra HP
Character Text: “Delicious!”
Finally, a Text Box pops up, telling the player what extra effects they received.
In a fan game I’m developing, I was able to get working a mechanic called “Favorite Food”. How it works is that by giving an actor their favorite food item (go figure), they gain additional effects such as extra health, MP, TP, etc.
Using the script option and common events, I was able to get it to work nicely when the player is out of battle. In battle however, I have hit a wall.
I choose the item that a character likes on 1 turn. Common event plays, no issue. I choose a different item a different character likes in another turn. Common event plays, no issue. However, if I choose two different items for two different characters to consume on 1 turn, the common event plays only once, and only for the character who goes first.
My question is this: is there a way to get a common event to play more than once on 1 turn, or am I missing something?
The way my common event works is this:
Control Variable: ID of item last used
Control Variable: ID of actor that the item was used on
If: the time used last turn is ##,
If: If the actor id it’s used on is ##
If Both conditions are met, then the script plays:
Script: Add Extra HP
Character Text: “Delicious!”
Finally, a Text Box pops up, telling the player what extra effects they received.