How do I make This Kind Of Rule With Attributes ???

FuzzBuzzFuzzBuzz Member, PRO Posts: 119
Hi Everyone ! Can anyone help me make this :

Every time "+1" is added to "ATTRIBUTE X"

(will do this down bellow)

"-0.10" is subtracted to "ATTRIBUTE Y"

But it has to happen " EVERYTIME " +1 is added to ATTRIBUTE X
I've tried every combination and i can't seem to get it to work...
The reason why i need this is to make it harder to reach the next "player rank" because if at level 1, +1 is added to reach 100 when action X is activated it will take 100 action to reach level 2, So if 0,10 is subtracted from 1 at level 2, it will now take 111 actions to reach level 3 ( 100/0,90=111,111111)

I'm trying my best to explain... :/

If you guys could help me it would be great ! I'm so far in my game and can't go back now!!!
Thanks again.

FuzzBuzz

Comments

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    If I'm understanding you correct, create a self attribute (real) called score.

    Change self.score to Attribute X

    When attribute x>self.score
    change attribute y to attrubute Y -.1
    change attribute self.score to Attribute X


    When attribute x for when attribute = self.score+1 or -1

    If that isn't what your looking for let me know and I'll throw something else together.

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2014

    Hi @FuzzBuzz Here's another way:

    When Go is true --- your trigger to start the adding & subtracting---
    Change attribute Go to false
    Change attribute ATTRIBUTE X to ATTRIBUTE X+1
    Change attribute ATTRIBUTE Y to ATTRIBUTE Y-0.1

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ArmellineArmelline Member, PRO Posts: 5,374
    As @gyroscope has noted, what you've described is a situation where every time +1 is added to attribute 1, attribute 2 has 0.1 subtracted. If that's so, you're over complicating things in your mind.

    As gyroscope notes, just add the attribute 2 change just after the attribute 1 change, whenever it is made.

    I don't think that will really achieve what you want though. It would seem easier to just throw in a step attribute, which you update each time the total is reached to the new total you desire. The formula I used in this example is just an example, you could make the step anything you want.
  • FuzzBuzzFuzzBuzz Member, PRO Posts: 119
    edited January 2014
    Thanks for your help everyone! I've figured out how to do it finally !
    FuzzBuzz
Sign In or Register to comment.