Staredit Network

Staredit Network -> UMS Assistance -> Limiting gas
Report, edit, etc...Posted by Laser_Dude on 2006-08-17 at 13:32:17
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.
Report, edit, etc...Posted by Mp)7-7 on 2006-08-17 at 13:47:00
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.
Report, edit, etc...Posted by Desperado on 2006-08-17 at 13:51:41
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.
Report, edit, etc...Posted by Laser_Dude on 2006-08-17 at 14:07:17
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
Report, edit, etc...Posted by Ihjel on 2006-08-17 at 15:29:30
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?
Report, edit, etc...Posted by Laser_Dude on 2006-08-17 at 15:32:34
that's a more complex version of what my trigger would've been.
Next Page (1)