I need help with my trigger. I looked around and got some stuff to work.
I want a specifik unit to spawn when a specifik unit enter a region. But only if that player can afford the transformation.
This is what i have done.
- Event
Unit - Any Unit Enters Region 036
- Condition
(Unit type of (Triggering unit)) == SCV
- Actions
Unit - Create 1 Hellion for player (Triggering player) at Point 002 facing (Position of (Triggering unit)) (No
Options)
Unit - Remove (Triggering unit) from the game
-----
So this is basicly the spawn. But i need help to make some kind of condition that he can only switch from SCV to the helion if he has 5000 minerals. Can you guys help me out with that because im pretty much stuck.
I need help with my trigger. I looked around and got some stuff to work. I want a specifik unit to spawn when a specifik unit enter a region. But only if that player can afford the transformation.
This is what i have done.
- Event
Unit - Any Unit Enters Region 036
- Condition
(Unit type of (Triggering unit)) == SCV
- Actions
Unit - Create 1 Hellion for player (Triggering player) at Point 002 facing (Position of (Triggering unit)) (No Options)
Unit - Remove (Triggering unit) from the game
-----So this is basicly the spawn. But i need help to make some kind of condition that he can only switch from SCV to the helion if he has 5000 minerals. Can you guys help me out with that because im pretty much stuck.
Thanks
@brahim113: Go
Create a condition, go to functions and search Player Property, select it and press Ok
Make sure the player is set to triggering player and the property to Minerals
change the == to >=
set the Value to 5000 Minerals
Finally Add an action Player - Modify player (Triggering player) Minerals: Subtract 5000
Thanks alot m8 for the fast respons :)