Staredit Network

Staredit Network -> UMS Assistance -> help with a trigger plz?
Report, edit, etc...Posted by -bilal92- on 2006-06-28 at 17:10:33
do u know how stop gas from going up? like i have a trigger where vespene gas is automaticly added to a current player, do u know a trigger that would make the vespene gas to stop when it gets to 1000? but when they use it and it goes down itll go back to 1000 again?
Report, edit, etc...Posted by Zeratul_101 on 2006-06-28 at 17:22:37
player accumalates at most 999 vespene

add 1 more vespene
preserve trigger

*syntax and wording aren't correct, but you should be able to get the general idea.
Report, edit, etc...Posted by Foley on 2006-06-29 at 10:06:35
QUOTE(Zeratul_101 @ Jun 28 2006, 11:22 PM)
player accumalates at most 999 vespene

add 1 more vespene
preserve trigger

*syntax and wording aren't correct, but you should be able to get the general idea.
[right][snapback]515039[/snapback][/right]


- Wrong! That will give player gas even if he haves more than 1000...

Mine proposition:

Conditions:
<player> accumulates at most 1000 gas
Actions:
Set <player's> gas to 1000 (dunno if it will work cos i dont remember all the actions, didnt mapped much time...)
Preserve Trigger
Report, edit, etc...Posted by JB4times4 on 2006-06-29 at 10:43:16
ya or another way to do it

Conditions
<player> accumulate atleast 1000 gas

actions
set <player> gas to 1000
preserve trigger
Report, edit, etc...Posted by Noober on 2006-06-29 at 10:47:07
QUOTE(Foley @ Jun 29 2006, 10:06 AM)
- Wrong! That will give player gas even if he haves more than 1000...

Mine proposition:

Conditions:
<player> accumulates at most 1000 gas
Actions:
Set <player's> gas to 1000 (dunno if it will work cos i dont remember all the actions, didnt mapped much time...)
Preserve Trigger
[right][snapback]515424[/snapback][/right]

No it won't... if the player has from 0 to 999 gas, add 1 gas, so the max he can get is 1000. Your trigger just sets it to 1000 when it's less than 1000, but he wants it to just add 1 when it's less than 1000.
Report, edit, etc...Posted by Zeratul_101 on 2006-06-29 at 10:47:09
QUOTE(Foley @ Jun 29 2006, 08:06 AM)
- Wrong! That will give player gas even if he haves more than 1000...
[right][snapback]515424[/snapback][/right]


err, no. when he has at most 999, it will increase the counter by 1. then he will have a thousand - which is more than the condition can accept so it won't run and therefore won't go over a thousand.

bilal, do you want it to go slower(giving the effect of regeneration) or set to 1000 gas instantly?
Report, edit, etc...Posted by Mini Moose 2707 on 2006-06-30 at 11:45:52
I think he's intelligent enough to know whether he wants to use set to or add.
Report, edit, etc...Posted by Sicarul on 2006-06-30 at 11:53:08
BTW, he already fixed this, you can close the topic...
Next Page (1)