I want to have it so that when a certain player reaches a set gas limit, it sets it to the max. That's the easy part.
The hard part is, I want the maximum to be able to change drastically depending on the number of "batteries" he has.
I was going to use binary to get numbers up to 256, but I can't figure out a way to do this.
Thanks for the help.
Current Player brings 10 (or however many you want) batteries to 'anywhere'
End switch 1
Set switch 2
Preserve Trigger
Switch 1 is the first max of gas
Switch 2 is second max of gas
Then for the next, Ens Switch 2 and Set switch 3.
How many batteries is it possible to have? If it is only something like ten then you need to stop being so lazy and just make ten different triggers.
I was going to use up to 256
Just in case...
A binary system would be easiest, it's what I used for the Generators
ADDITION: I wouldn't want to use switches for this, I'd just detect the batteries "on the spot" if I had to make 256 triggers
Trigger |
Conditions: |
¤ Player gets a batteri
|
¤ counter is at most 256 |
Actions: |
¤ Clear Maximum Reached
|
¤ increase counter by 1
|
¤ Preserve trigger |
Trigger |
Conditions: |
¤ current player accures ¨max gas amouth 0¨
|
¤ counter is exacly 0 |
Actions: |
¤ Set Maximum Reached |
Trigger |
Conditions: |
¤ Counter is exacly 0
|
¤ Maxium Reached is set |
Actions: |
¤ Set Gas for current player to ¨max gas amout 0¨
|
¤ Preserve Trigger |
Trigger |
Conditions: |
¤ current player accures ¨max gas amouth 1¨
|
¤ counter is exacly 1 |
Actions: |
¤ Set Maximum Reached |
Trigger |
Conditions: |
¤ Counter is exacly 1
|
¤ Maxium Reached is set |
Actions: |
¤ Set Gas for current player to ¨max gas amout 1¨
|
¤ Preserve Trigger |
Trigger |
Conditions: |
¤ current player accures ¨max gas amouth 2¨
|
¤ counter is exacly 2 |
Actions: |
¤ Set Maximum Reached |
Trigger |
Conditions: |
¤ Counter is exacly 2
|
¤ Maxium Reached is set |
Actions: |
¤ Set Gas for current player to ¨max gas amout 2¨
|
¤ Preserve Trigger |
would that do?
that's a more complex version of what my trigger would've been.