• 🏆 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!

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