How do I make This Kind Of Rule With Attributes ???
FuzzBuzz
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
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
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.
Need Help? Email Me | Templates | Full Game Source Code
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
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
FuzzBuzz