This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm trying to recreate the Hallucinate ability from SC1 where it creates 2 more of the target unit and then applies the hallucination behavior.
Trying to do this in the data editor I can only get the ability to create 2 of a preset unit, not just create 2 of the target unit.
Using triggers, I can find a function to get the unit targeted by the ability... but can only use it in the event definition.
Anyone have a suggestions?
@Diablito816: Go
This should work, not sure how you'd go about it with the data editor.
Events Unit - Any Unit uses Hallucination at Generic1 - Any stage (Ignore shared abilities) Local Variables i = 0 <Integer> Conditions Actions General - While (Conditions) are true, do (Actions) Conditions i < 2 Actions Unit - Create 1 (Unit type of (Triggering ability target unit)) for player 1 at (Position of (Triggering ability target unit)) using default facing (No Options) Unit - Add 1 Hallucination buff to (Last created unit) from (Triggering unit) Variable - Set i = (i + 1)
Edit: Forgot to increment i
@Demolion: Go
Working now, thanks!
Edit: oh, I had to change stage to be one specific stage or it ran the ability 5 or 6 times (probably once for each stage)
I'm trying to recreate the Hallucinate ability from SC1 where it creates 2 more of the target unit and then applies the hallucination behavior.
Trying to do this in the data editor I can only get the ability to create 2 of a preset unit, not just create 2 of the target unit.
Using triggers, I can find a function to get the unit targeted by the ability... but can only use it in the event definition.
Anyone have a suggestions?
@Diablito816: Go
This should work, not sure how you'd go about it with the data editor.
Edit: Forgot to increment i
@Demolion: Go
Working now, thanks!
Edit: oh, I had to change stage to be one specific stage or it ran the ability 5 or 6 times (probably once for each stage)