• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] UNIT ABILITY - Expel

Status
Not open for further replies.
Level 5
Joined
Nov 6, 2014
Messages
70
So I was trying to make an ability called "Expel" in which the caster casts a magic spell upon any target unit making it disappear completely from the game but returns its gold and lumber cost to the stockpile resource of its owner.

But this trigger code I made seem to fail to work and says syntax mistakes.
Any ideas how to fix this?

2duig50.jpg
 
Level 12
Joined
Oct 16, 2010
Messages
680
Why don't you simply use the effect instead of a dummy unit?:/

and don't use Remove (last created unit) after wait coz it can bug if during the delay an other unit were made too
either use a special effect(instead the unit) or add an expiration timer to the unit so it gets automatically be removed

right click your trigger and click on copy as text
use [trigger]insert text here[/trigger] to post triggers with ease

what kind of syntax error u get?
 
Status
Not open for further replies.
Top