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

A few DotA spells

Status
Not open for further replies.
Level 6
Joined
May 4, 2012
Messages
187
guYS!

OkK... how tO mAKE iNVOKe SPells?!

alSo... IS thERE a variable THAT is EQUAVLENTZ to raNGERs?
ex(x= 1 to 2)

PLZ ASAP RESON! :ogre_haosis:
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
guYS!

OkK... how tO mAKE iNVOKe SPells?!

alSo... IS thERE a variable THAT is EQUAVLENTZ to raNGERs?
ex(x= 1 to 2)

PLZ ASAP RESON! :ogre_haosis:

Geez, I hope your grammar is comes from the keyboard and not somewhere else.
Anyways, there are no variables for ranges.
You make 1 variable for the highest and the other for the lowest value of that range. Thus, it works.
Having a variable type for ranges would be pointless anyway, as a variable can't have multiple values.
 
Level 6
Joined
May 4, 2012
Messages
187
?

Geez, I hope your grammar is comes from the keyboard and not somewhere else.
Anyways, there are no variables for ranges.
You make 1 variable for the highest and the other for the lowest value of that range. Thus, it works.
Having a variable type for ranges would be pointless anyway, as a variable can't have multiple values.

WhAT? hm... :vw_death:
[Srs]

I can't understand it.
What if:

[1] I want a spell like, if;
mana is = to 1, then stun 1s (second)
mana is = to 2, then stun 2s

like that?

Or, let us say,

[2] I want a spell like, the duration and strength of a SLOW depends on its mana lost. Is it possible?!

I got 2 questions, so yeah
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
WhAT? hm... :vw_death:
[Srs]

I can't understand it.
What if:

[1] I want a spell like, if;
mana is = to 1, then stun 1s (second)
mana is = to 2, then stun 2s

like that?

Or, let us say,

[2] I want a spell like, the duration and strength of a SLOW depends on its mana lost. Is it possible?!

I got 2 questions, so yeah

[1]
Oh, you mean arrays. In the variable editor just tick the box "array".
This means that those spells must be triggered.
[2]
In which way?
1. Spell is channeled over time and gets more powerful over time
2. Spell takes a percentage of your mana and power is decided by amount of mana taken
 
Level 6
Joined
May 4, 2012
Messages
187
Ah darn it. Sorry sir if I didn't explained it well.

So, I got a nuke spell just like Mana Void of Magina (If you play DotA), however I modified 'MY' idea. So the spell's idea is like, when the ability is casted, it will slow the target unit depening on its mana lost (Ofc, the hero got some mana burning skill and stuff), so, the slow's duration and slow's strength (how much slow) varies on how much mana is lost.

Once I cast the spell, the triggers itself starts calculating what is the difference between the 2 manas (which I am already done), and then, after that, it will slow the unit depening on the result of the calculation. My problem here is, I don't know how to slow the unit, and how to vary the slow LEVEL.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Ah darn it. Sorry sir if I didn't explained it well.

So, I got a nuke spell just like Mana Void of Magina (If you play DotA), however I modified 'MY' idea. So the spell's idea is like, when the ability is casted, it will slow the target unit depening on its mana lost (Ofc, the hero got some mana burning skill and stuff), so, the slow's duration and slow's strength (how much slow) varies on how much mana is lost.

Once I cast the spell, the triggers itself starts calculating what is the difference between the 2 manas (which I am already done), and then, after that, it will slow the unit depening on the result of the calculation. My problem here is, I don't know how to slow the unit, and how to vary the slow LEVEL.
To do that you make the ability have multiple levels. Then calculate the difference between mana of caster and target and through some other calculation(difference/30) you set the level of ability to that.
You will need to calculate in reals and then convert it to integer right before using(doesn't require a separate variable)
With my formula:
Basically if difference in mana is 30, then the level of ability is 1. If it is 40, then it's still 1. If it's 60, then it's 2. 90 makes it 3, etc.
 
Level 6
Joined
May 4, 2012
Messages
187
Hm, any test maps kind sir?
(Lost my WE)

Thanks in advance, and of course, advance +rep.
 
Status
Not open for further replies.
Top