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.
[02:43 am]
Symmetry -- I'm doing my best, damn it
[2026-9-28. : 4:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[2026-9-28. : 4:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[2026-9-28. : 4:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
[2026-9-28. : 4:10 pm]
WeirdoX4857 -- Where is everybody
[2026-9-28. : 1:21 pm]
@:@ -- this community still going strong?
[2026-9-27. : 4:30 pm]
Oh_Man -- yeah, probs
[2026-9-27. : 3:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[2026-9-27. : 3:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[2026-9-27. : 2:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
Please log in to shout.


Members Online: MobMob