Requirement spell - ??

Aqkastik

New Member
Reaction score
0
I would like to make a spell that requires that some spell is casted before you can you use the really spell ? could someone help me with that? xD
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
If the previous spell has a buff, you can Dummy the ability.

Make an ability that does nothing, base it of rejuvenation, for example. Then make it so you can cast it on your enemies. When you cast this spell check if the unit has the required buff or not. If it has, create a dummy unit and order it to cast the spell, if not, nothing happens.

If the first ability doesn't give a buff, then it's a bit more complicated i think x)
 

HydraRancher

Truth begins in lies
Reaction score
197
Well an easy method would only make it MPI but...
Create a trigger than upon your first triggers cast enables a Boolean Array.
When your second spell is cast check if this boolean is true, if so, set it to false.



If the previous spell has a buff, you can Dummy the ability.

Make an ability that does nothing, base it of rejuvenation, for example. Then make it so you can cast it on your enemies. When you cast this spell check if the unit has the required buff or not. If it has, create a dummy unit and order it to cast the spell, if not, nothing happens.

If the first ability doesn't give a buff, then it's a bit more complicated i think x)

You just gave me an idea!
When the first ability is casted, add a spellbook (disabled) to the hero.
Check if the hero has this spellbook when the second ability is casted, if so, remove the spellbook.
 

RangerX

I am justice!
Reaction score
69
you could use this map Life Tap by skyblade333 & N(O.O)B
and the first spell will make the "You Must Have Less Than 20% Mana" dummy that you must change the name of this btw look carefully at the Lifetap and at the dummy it have requirements :p
so this is the way it work
1.first spell is casted
2.create the dummy for the player that need to cast the second spell
3.second spell can be casted
4.second spell is casted
5.the dummy is removed
6.second spell is unavaible because the player don't have an unit of "You Must Have Less Than 20% Mana" type.
and with this you will have an nice text in the second spell that say "You must have <first spell> casted
 

avalya

New Member
Reaction score
37
What he's saying is that you make the spell have a 'Requirement', in form of a unit, that unit is a dummy unit that is created when you cast the first spell. You might want to add an expiration timer (timed life) to the dummy. Name the dummy unit '(FIRSTSPELL) Cast', this will display;

Requirements
- First Spell Cast

When you cast your second spell, remove the dummy unit, thus disabling the ability and shows the DISBTN icon (the dark, faded out one).
 

Ayanami

칼리
Reaction score
288
What he's saying is that you make the spell have a 'Requirement', in form of a unit, that unit is a dummy unit that is created when you cast the first spell. You might want to add an expiration timer (timed life) to the dummy. Name the dummy unit '(FIRSTSPELL) Cast', this will display;

Requirements
- First Spell Cast

When you cast your second spell, remove the dummy unit, thus disabling the ability and shows the DISBTN icon (the dark, faded out one).

Doesn't disabling the spell make it totally disappear from the unit?
 

avalya

New Member
Reaction score
37
No, it's actually not disabled, but in fact it doesn't meet the requirements since you don't have the dummy unit that enables it anymore, thus it is pseudo-disabled.
 

RangerX

I am justice!
Reaction score
69
it's exactly like when you try to cast some spells that require upgrades :p here it require that dummy unit
 

Ayanami

칼리
Reaction score
288
Oh, you meant the Techtree - Requirement thing. I thought you meant "Player - Disable/Enable Ability" :p
 

avalya

New Member
Reaction score
37
Then I'd say disable and not requirement. :)

But yeah, I get what you're saying.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top