kasilopana
New Member
- Reaction score
- 1
Hey Everybody. I got this trigger i can't really figure out. Here's the triggers:
and
What I want to happen is this:
When the unit kills the destructrible stone, i want him to get a random number of 1 to 10 stones (stone=gold) - and get a message saying how much stone he got
What am I doing wrong? :S
Trigger:
- init
- Events
- Time - Elapsed game time is 0.01 seconds
- Conditions
- Actions
- Set smoothstone = (Random integer number between 1 and 10)
- Events
and
Trigger:
- Smooth Stone
- Events
- Destructible - A destructible within (Entire map) dies
- Conditions
- (Destructible-type of (Dying destructible)) Equal to Smooth Stone
- Actions
- If ((Owner of (Killing unit)) Equal to Player 1 (Red)) then do (Player - Add smoothstone to Player 1 (Red) Current gold) else do (Do nothing)
- Game - Display to Player Group - Player 1 (Red) the text: (You got + ((String(smoothstone)) + Smooth Stone))
- Events
What I want to happen is this:
When the unit kills the destructrible stone, i want him to get a random number of 1 to 10 stones (stone=gold) - and get a message saying how much stone he got
What am I doing wrong? :S