killerfer
Reaction score
51

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

1675897032343.png
Working on an important character's model today: Saken! One of Cyprian's friends from the Hofau school. There he is as a teen student on the left and as an adult Deputy Minister of Love on the right. He dyed his hair.
I always have a hard time writing mean characters. To me, their words sound like a normal comment I receive on a regular basis, but to others it's too much.
AAAGH... I hurt my back at work today and now I can't move from my lower back area. I've been resting like crazy, alternating heat and cold, and hoping tomorrow's dentist appointment isn't ruined...
So far Hogwarts legacy doesn't live up to hype.
Going through alls the stats I have from my testplays. It is so interesting how most people got about the average expected results, but some have some very weird outlieing ones that I now have to try to understand.

Forum statistics

Threads
128,616
Messages
1,195,841
Members
169,197
Latest member
MidnandAlex
Top