Need some pointers on creating a function.

● ARCHIVED · READ-ONLY
Started by TheCastle 1 posts View original ↗
  1. Right now what I have is a battle system that is real time and your TP goes up while you wait. Similar to an ATB system but its based around TP going up over time instead.

    Well anyway I am not sure how to make a function that does the following.

    1. Checks the agility of all battlers and finds the one with the highest agility.
    2. Sets the TP generation multiplier to 1.0 for the battler with the highest agility
    3. Sets all other battler TP generation multipliers to a percentage equivalent to individual agility vs the battler with the highest agility.

    This is a check I will be doing every frame just in case of any agility buffs or debuffs...

    I don't need anything to be fully functional I just want an example with proper syntax so I can learn how to do it myself.