Note sure, haven't done that one before. There is an event for player property changes, and you can specify vespene gas. You might even be able to specify the amount of the change in a condition.
You can use the periodic event and the Unit Is Alive condition
Let's say you want something to happen when you Pick up a gas pallet.
Event: Every 1.0 seconds of Game Time
Condition: Triggering Unit (aka. The Gas pallet) is Alive == False
Actions:
Turn (current trigger) Off
- other actions
This is the method i use for my maps, and I find it works pretty well.
Rollback Post to RevisionRollBack
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Dudkisc2? Will this work even if the item is loot, droops from a enemy?
Hmm, I'm not too sure about that one unfortunately. The one I made works better with pre-made units or units assigned to a variable. I guess if you have the ability to assign a looted item to a variable and applying it in the condition, it would work - however I'm not too keen on item looting as its not something I have used myself.
I would advice not to use it though, as it makes things a little more complicated as you have to also turn the trigger off whenever the loot hasn't been dropped, and turn it on whenever the item is in the actual game. I'm not sure that would work properly.
Rollback Post to RevisionRollBack
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Hi
can I make a trigger that runs when my unit pickups a item, like a 100 gas container?
ex:
event Unit picks up item
Condition
?
Action
run another trigger
Thanks
best regards Benny
Note sure, haven't done that one before. There is an event for player property changes, and you can specify vespene gas. You might even be able to specify the amount of the change in a condition.
Try the event "Unit Manipulates Inventory".
You can use the periodic event and the Unit Is Alive condition
Let's say you want something to happen when you Pick up a gas pallet.
Event: Every 1.0 seconds of Game Time
Condition: Triggering Unit (aka. The Gas pallet) is Alive == False
Actions: Turn (current trigger) Off - other actions
This is the method i use for my maps, and I find it works pretty well.
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative
Ah, thanks, gonna try your advises to night.
Dudkisc2? Will this work even if the item is loot, droops from a enemy?
Hmm, I'm not too sure about that one unfortunately. The one I made works better with pre-made units or units assigned to a variable. I guess if you have the ability to assign a looted item to a variable and applying it in the condition, it would work - however I'm not too keen on item looting as its not something I have used myself.
I would advice not to use it though, as it makes things a little more complicated as you have to also turn the trigger off whenever the loot hasn't been dropped, and turn it on whenever the item is in the actual game. I'm not sure that would work properly.
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative