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

Trouble with basic "buy ability" trigger

Status
Not open for further replies.
Level 1
Joined
Feb 14, 2023
Messages
1
I've been following the guide - Buying abilitys - and have a few questions.
In the first trigger, he uses "Set skill[(Player number of (Owner of triggering unit))] = Inferno". I can only find Set VariableSet skill and I cannot find just the spell "Inferno" anywhere. I can also not find (Level of skill[(Player number of (Owner of triggering unit))] for (Triggering unit)) Less than 1). I just don't know where to find these specific commands when making triggers. Please help!
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
That thread is from 2007 so it's safe to assume it's very outdated. That being said, a lot of things stayed the same over the years.

Anyway, skill is an Ability Code variable with an Array (little checkbox enabled that adds these brackets []).

Set VariableSet is the same thing as Set, it's just that Reforged is buggy. It went from just the word Set to Set Variable to now Set VariableSet which is a typo that will probably never get fixed.

(Level of skill[...]) is a Condition found under the Integer Comparison category. It's called "Unit - Level of ability for unit". You can always tell which category a Condition belongs to by it's value, for example:

Less than 1 <-- 1 is an Integer, therefore it's an Integer comparison.
Greater than 1.24 <-- 1.24 is a Real, therefore it's a Real comparison.
Equal to True <-- True is a Boolean, therefore it's a Boolean comparison.

I would try to find a newer tutorial, that one looks pretty bad in my opinion. Those 0.20 second Waits look very unnecessary.
 
Status
Not open for further replies.
Top