• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[JASS] Passive skill in spellbook

Status
Not open for further replies.
Level 6
Joined
Aug 4, 2012
Messages
193
what trigger should i use if i want to put 2 spells into a spell book and then disable it? this is a orpg map that can be save/load, and the learned spell will be saved too
 
You can make it in Trigger editor to look like you add a spell to a spellbook

make two spell books (one of it going to be a dummy)
the main spell book won't contain any spells
the dummy will contain the spell you're going to add to the unit
set the books order ids to the same
give the main spellbook to the unit via object editor

from now any time you want to add the unit the spell (contained by the dummy)
give the unit the dummy spellbook and disable it
so it won't be visible
and because their id is the same the spell will appear in the main spell book too

this way you will need 'n' dummy spellbooks for n spells
all goes the same
 
Lender, i still don't understand =_=

so defskull, you got a better idea?

fgjk.png


where is the one you talking about?
 
Last edited:
You can make it in Trigger editor to look like you add a spell to a spellbook

make two spell books (one of it going to be a dummy)
the main spell book won't contain any spells
the dummy will contain the spell you're going to add to the unit
set the books order ids to the same
give the main spellbook to the unit via object editor

from now any time you want to add the unit the spell (contained by the dummy)
give the unit the dummy spellbook and disable it
so it won't be visible
and because their id is the same the spell will appear in the main spell book too

this way you will need 'n' dummy spellbooks for n spells
all goes the same

Lender, i still don't understand =_=

so defskull, you got a better idea?

fgjk.png


where is the one you talking about?

he says u make a spellbook for each ability and one main spellbook than disable the spellbooks that contain the abilities so that way when u add them they will add onto the main spellbook.

Dont worry about the base order id if u only have one spellbook. if u just copy it it will work
 
Let's say you have 3 spells (A/B/C), total Spell Book will be 8:
Spell Book Default - Shows 3 spells, but all of them are unavailable - you can make it Upgrades, etc.
Spell Book A - A
Spell Book B - B
Spell Book C - C
Spell Book AB - A/B
Spell Book AC - A/C
Spell Book BC - B/C
Spell Book ABC - A/B/C
 
what i want is a spellbook that contain a spellbook (dummy), spellbook (dummy) contains 2 spells, and i want to make the spellbook like passive, so that can't click
 
what i want is a spellbook that contain a spellbook (dummy), spellbook (dummy) contains 2 spells, and i want to make the spellbook like passive, so that can't click

Wow! I thought it can not be achieved
but i found a solution to your problem

just add the main spellbook to your hero
add the dummy spellbook (containing the 2 spells) to the main spellbooks list

set the dummy spell books cast time to a hilarious amount ( 99999 )

the caster will be the first spell book so this won't mess up your character
and it won't open for you for a long time:D ( makes it almost unable to open :P )
 
or maybe i can put a fake passive skill with no effect for the hero, and then i give the hero a spellbook that contains these 2 spells, after that i disable the spellbook, and i set the level of the skills in the spellbook equal to the level of the fake passive skill?
 
Status
Not open for further replies.
Back
Top