killerfer
Reaction score
52

Profile posts Latest activity Postings About

  • Hi!  I saw you helped someone with an absorption barrier formula.  I want to include items that create and restore barrier points per turn, but can't figure out how to write in a maximum BP for the item.


    For example, a Barrier Ring starts each fight with 500 points and restores 100 points per turn with a maximum of 500.  I already have the starting points and regenerating points, but I'm not much for the lunatic mode.  Any help you can give me would be greatly appreciated. 
    killerfer
    killerfer
    Sure thing! Try this:


    <Custom Barrier Points>
    var maxbarrier = 500;
    value = maxbarrier - user.barrierPoints()
    </Custom Barrier Points>


    <Custom Barrier Regen>
    var maxbarrier = 500;
    var regen = 100;
    if ((maxbarrier - user.barrierPoints()) < regen) {
    value = maxbarrier - user.barrierPoints()
    } else {
    value = regen
    }
    </Custom Barrier Regen>


    Let me know if it works.
    zen_honkey
    Worked like a charm.  Thanks a lot!
  • Loading…
  • Loading…
  • Loading…

Latest Threads

Latest Posts

Latest Profile Posts

AAAGH... I hate navigating the new RPG Maker website!
Forgive my rudimentary video editing skills, thought I'd start sharing progress on my status posts as well. Here's the second character of my roster, Mǽlhafoc, the Ælven ranger.

And if you missed the first one many moons ago, here's Vilhelm, the tarnished knight.
Knocked through three more rough draft sprites. (A frog beast thing, a skeleton, and vampire bat) down to seven sprites and a thing more appropriately done as tiles.
Cutscenes remaining are officially in the single digits! Woohoo!

Forum statistics

Threads
135,012
Messages
1,252,898
Members
177,926
Latest member
HotEarlGrey
Top