Creating Mana Upkeep

● ARCHIVED · READ-ONLY
Started by Thousandpath 11 posts View original ↗
  1. I am making a game about a Summoner whose party members are the creatures he summons.

    An important part of the game is supposed to be that each summoned creature decreases the summoner characters maximum mana by specified amount.

    But despite everything I have tried, I cannot figure out how to do this.

    Can anyone help me with it?
  2. there are several ways how to do this, and you didn't tell us how that game should work - so we can only guess what might be the best option.


    I would suggest that you create states "XY summoned" for each creature, and when that creature is summoned the actor gets inflicted with the state - and that state contains a reducing MMP effect. However, this only works if each creature can only be summoned once - because you can't have two identical states at the same time.


    Other ways might be a common parallel event checking what currently is summoned and changing MMP accordingöly, or a script, or a few checks in troop events if the summonings only happen in battle...
  3. Ah, there is no problem with duplicates, as each summoned creature is unique.

    But the upkeep cost is part of balance, so bigger creatures are supposed to have higher upkeep cost.

    It should work so that when a creature is in the fighting party, the maximum mana is decreased by an amount specific for that creature.
  4. I meant one different state for each creature, and each state will have a different MMP modification based on which creature it is assigned to.


    Then have the summoning skill targeted on the user adding that state while using a common event to summon the creature
  5. The Summoned creatures are changed in the Yanfly party system.

    The idea is that when actor X is in the party, the summoner actor gains the state, where actor X is summoned creature.
  6. then you'll need a script modification for the party system, that calls an common event depending on changes in the party.
  7. So something along the lines of:

    While Actor(002.Demon) state == in party {

           Give Actor(001.Summoner) state(1.DemonsUpkeep)

    }

    Is that about right?
  8. I would have thought a state's Features could do this.

    Like, summoning Pyxie inflicts the Pyxie Summoned state, which multiplies your MMP by 98%. Then, if you summon Gryphon, the Gryphon Summoned state will multiply your MMP by 90%. Thus, each summons reduces the maximum available mana.

    But, like Andar said, this only works if you have one creature of a given type summoned.
  9. upkeep_state = actor_id+24 summoner = $game_actors[001] summoner.add_state(upkeep_state) summoner.result.clearI used this in alias method: add_actor

    upkeep_state = actor_id+24 summoner = $game_actors[001] summoner.remove_state(upkeep_state) summoner.result.clearAnd this in alias method: remove_actor

    But it does not seem to work.

    Is this because Add and Remove actor add or remove the actor to use in a party instead of just changing formation?
  10. Got the whole thing finally fixed.

    No need for help anymore.
  11. Thousandpath, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    If you want to add something and the last post is your own, edit it.


    If you want a topic closed, simply report it.


    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.