• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell Effects

Status
Not open for further replies.
Level 2
Joined
Jun 5, 2007
Messages
8
Well recently i've started a new map and i need to make some custom spells but the problem is i'm not sure how to set what the spell does:confused:

If anyone can help please do
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Welcome to the Hive. If you want to introduce yourself to the Hive Workshop Community, you can do so here.

To answer your question, if you're doing (for example) a spell that automatically kills an enemy under 200 HP, you can't add fields to do that, all the abilities inside the Ability Editor are hard-coded.
You have to use triggers to do those custom spells. Blizzard did not use some fields they put onto certain spells, so you could still be able to create different skills without using triggers.

Anyway, here's an example that I referred to previously. This trigger kills the unit if it's under 200 HP. Includes heroes.
[TRIGGER=GUI Trigger]pIE_eAter
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to YourAbility
Actions
If ((Life of (Target unit of ability being cast)) Less than 200.00) then do (Unit - Kill (Target unit of ability being cast)) else do (Do nothing)
[/TRIGGER]
This will not give experience to the caster, however. I tryed to make it less confusing possible. If you are new to World Editor, this might hard enough already.
 
Status
Not open for further replies.
Top