killerfer
Reaction score
50

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 Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,634
Messages
1,015,152
Members
137,301
Latest member
rock6948
Top