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 Posts

Latest Profile Posts

I always forget that most of websites have "Back to top" button. I always scroll my way through to the top than clicking them :(
Potato The game! Few concepts for characters to my game.
Well, well, well, well....Lemme get a look at this fanart.
The Google Play rating for one of my games finally rose above 4.0 after getting review-bombed from a $0 sale. Now the game's sales are doing much better when discounted, so that's nice.
I'm getting close to releasing a demo. Working on formatting my Games in Development post.

Forum statistics

Threads
98,236
Messages
950,596
Members
129,533
Latest member
ElenoreEdwin
Top