HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spellbooks and Research... and Buffs

05-16-2009, 08:12 AM#1
Terrorblade
If a spellbook has a spell with a research requirement, and the person using the spellbook does not have that tech researched, will the unit be unable to use the spell?

And what do I set if I want a trigger to respond to a buff? Because I'm trying to make a spell that if a unit has a certain buff, it will take extra damage. But I can't find anything to match the part if unit has buff type equals to true.
05-16-2009, 09:03 AM#2
Archmage Owenalacaster
Quote:
Originally Posted by Terrorblade
If a spellbook has a spell with a research requirement, and the person using the spellbook does not have that tech researched, will the unit be unable to use the spell?

And what do I set if I want a trigger to respond to a buff? Because I'm trying to make a spell that if a unit has a certain buff, it will take extra damage. But I can't find anything to match the part if unit has buff type equals to true.
[1] Correct, the ability will not be available unless either its requirements are satisfied or it doesn't check dependencies.

[2] Check for ability level > 0, where the ability is the buff. This is easy in JASS; I don't know how it's done in GUI.
05-16-2009, 12:20 PM#3
darkwulfv
There's a condition for "Unit has Buff" or something similar in GUI.
05-17-2009, 03:17 AM#4
Terrorblade
So with regards to follow up the spellbook question,

1)I'm trying to work on a change weapons thing using spellbooks using druid form variations.

2)But considering the hassle of going through switching to a weapon, then switching back to the base unit to change to a different unit.

3)Would it be practical to create multiple spellbooks for each unit to change between units? Or do I just use 1 spellbook?
05-18-2009, 12:11 PM#5
Tot
I would make a spellbook with n levels, each level containing other spells. If u switch form the lvl of the spellbook changes

e. g.
spellbook lvl 1 has moonfire, starfall, etc
spellbook lvl 2 has fury, armorshred, etc
spellbook lvl 3 has maim, etc

normalform-druid has spellbook lvl1
catform-druid has spellbook lvl2
bearform-druid has spellbook lvl3

form changes--> lvl of spellbook changes

OR:

you could make n spellbooks and n different units (if u don't want to trigger anything)
05-18-2009, 07:22 PM#6
Kyrbi0
It's an Integer comparison (in GUI); "Level of [Ability] for [Unit] is [Greater than or Equal to] 1".