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.
[07:59 pm]
Symmetry -- but I seem to be downloading things fine
[07:59 pm]
Symmetry -- the DLDB here is kinda sketch
[06:32 pm]
Zakerozi -- Something is wrong and I cannot download maps;((
[2026-11-15. : 5:38 am]
Decency -- any way to sort this by downloads? https://staredit.net/sc1db/browse/allmaps/
[2026-11-15. : 5:10 am]
Symmetry -- The house always wins
[2026-11-15. : 4:56 am]
Moose -- 160, take a seat
[2026-11-14. : 6:27 pm]
Symmetry -- Someday I'll be able to afford a glowing name :(
[2026-11-14. : 6:00 pm]
Symmetry -- 120 today. Apparently my luck is better when people take my box
[2026-11-14. : 7:52 am]
Oh_Man -- https://youtu.be/JMAA20Id4Qg
[2026-11-14. : 6:35 am]
RIVE -- baller shit
Please log in to shout.


Members Online: DarkenedFantasies, SPyro_Malin