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:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: jjf28, Roy