• 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.

Trigger Enhancing Spells(Need help please)

Status
Not open for further replies.
Level 2
Joined
May 29, 2006
Messages
8
I read the tutorial for these and I am slightly confused on how to use it in my map. My map has different skills that all have a percentage of success when used on the units in my city.

Here is my trigger so far for the first skill:
----
Event
Unit - A unit is attacked

Condition
(Random integer number between 1 and 100) Less than or equal to ((Level of Skill for (Attacking Unit))x 30)

Action
Player - Add 50 to (Owner of (Triggering Unit)) Current Gold
----
My question is, how do I set the exact spell for the event so I am able to use different spells rather than just one skill's percentage.
 
Level 2
Joined
May 29, 2006
Messages
8
Ok thanks a lot, that makes sense, and is there a way to make it only work on specific units? Instead of any unit that I can cast the spell on.


Edit: Nm i think I got it. I would do the same thing only unit = peasant.
 
Level 8
Joined
Nov 20, 2005
Messages
372
Condition
(Random integer number between 1 and 100) Less than or equal to ((Level of Skill for (Attacking Unit))x 30)
Integer - Level of *yourabilityname* equal or bigger than 1
Unittype of triggering unit equal to peasant

this should be the conditons if you want to have a % able chance for the peasants
 
Status
Not open for further replies.
Top