killerfer
Reaction score
49

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

I keep snapping wireless headphones. I think thats how they get ya, good sound quality but cheap plastic...
Broke the 1,000 hour mark on MV last night! Most of that was spent on 1 project, with most of that project being worked on outside the engine so far.
School books are so expensive... I just paid a fortune. :(
Does anyone knows those arts are just rip-offs from anime, or those are custom arts? There are no availlable TOS information so I'm not sure it's safe to get them
The universe does not want me to do another letsplay it seems... I keep bumping into problem after problem... Oh well. Still have several days to sort them out.

Forum statistics

Threads
93,461
Messages
912,653
Members
122,995
Latest member
Nightfight
Top