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

Status
Not open for further replies.
Level 2
Joined
Nov 28, 2004
Messages
8
is there a way to add a spell to the spellbook by a trigger?(not change the item to a whole to premade one)

i'd really like to know and if possible test it
 
Level 16
Joined
Sep 3, 2004
Messages
2,086
I am doing this in my campaign:
Create a spell book with all possible abilities you want, with in mind those abilities require the techtree of a dummy unit. When the unit reaches X conditions, create the dummy unit, with locust, no model, and no sight, somewhere. When they leace those conditions, pick all those units owned by that player and remove them
 
Level 1
Joined
Nov 24, 2004
Messages
4
Actually the best was to do that is The_Raven's way, you don't have to mess around with a bunch custom units.
Code:
Init
    Events
        Map initialization
    Conditions
    Actions
Player Group - Pick every player in (All players) and do (Actions)
    Loop - Actions
        Player - Disable Ability  for (Picked player)
Code:
   Events
        <Your Event>
    Conditions
        <Your Conditions>
    Actions
        Player - Enable Ability  for (Triggering player)
 
Status
Not open for further replies.
Top