Trigger Help
This topic is locked. You can no longer write replies here.
Jul 30 2010, 6:24 pm
By: RobSaget  

Jul 30 2010, 6:24 pm RobSaget Post #1



On my map, I have a dropship loaded with 8 individual terran units. The dropship cannot move due to a trigger that always moves the dropship to the location I set, however it can still unload.

I have trigger set when a unit is unloaded, and has accumulated 50 gas, it exchanges the 50 gas for 50 ore (Subtract 50 gas, Add 50 ore), Then the unit is reloaded.

My problem is, instead of subtracting 50 gas and adding 50 ore, it subtracts the total gas by all possible amounts divisible by 50 gas of the total, and the same with the ore (except adding).
(ex. Gas = 854 ... Ore = 0 *Unloads unit* Gas = 4 ... Ore = 850 *Unit Reloads* *end*)
(What I want. Gas = 854 ... Ore = 0 *Unloads unit* Gas = 804 ... Ore = 50 *Unit Reloads* *end*)

Any help please?



None.

Jul 30 2010, 7:19 pm Chia-Tyrant Post #2



It takes more than 1 trigger cycle for a unit to be reloaded into a transport. Here's what you could use:

Let loc be the ground location under the transport...
Quote
Conditions:
Player brings at least 1 unit to loc
Switch 1 is cleared
Actions:
Set switch 1
Subtract 50 minerals
Add 50 gas
Run AI Script "Enter transport" at loc
Preserve trigger

Conditions:
Player brings exactly 0 unit to loc
Switch 1 is set
Actions:
Clear switch 1
Preserve trigger




None.

Jul 31 2010, 12:49 am RobSaget Post #3



TY very much, it worked perfectly



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[06:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
[11:05 pm]
Ultraviolet -- :wob:
[03:55 pm]
Zoan -- :wob:
[2024-5-18. : 10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[2024-5-18. : 3:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
Please log in to shout.


Members Online: lil-Inferno, NudeRaider, Dem0n