| 11-19-2005, 01:25 AM | #1 |
Alright, I have a passive skill based off of Evasion(that does nothing) that when the unit casts a spell, they get a 20% restore 30% of the unit's mana. My first question is: When using the "ability being casted" condition multiple times, does that include all of the abilities listed? The problem comes when trying to make the trigger's actions work. How do I get it so that it will restore 30% of the caster's mana, PLUS keeping the caster's original mana to add-on? If I'm not making sense, then please say so. Thanks in advance. |
| 11-19-2005, 01:38 AM | #2 |
So basically you have a trigger on the lines of: You need the action (this is vague I don't have WE open): Unit - set unit "field" <- not sure what the term is Then you need the arithmatic: (Unit's current mana) + (.3 * Unit's max mana) |
| 11-19-2005, 01:40 AM | #3 |
Mm for some reason tassadar's reply didn't show up until I opened the page to write a reply...wierd =P. Anyways, if you have multiple conditions in the condition list without any Or's or And's, then it will by default be And, so all conditions will have to be true for the trigger to run. Edit: This makes me think maybe people actually did reply to my posts but I just couldn't see it...oO! Edit again: Nevermind, no replies =(. |
| 11-19-2005, 02:00 AM | #4 |
ok tainted i'm not all that good with the editor but this seems simple enough. you'd have to use the math function random number 1-5 and on a roll of 1 (20% chance) you'd set the units mana to mana of unit + (30% of max mana of unit) well since I'm in a rut with my own spells i'll see if I can make yours. |
| 11-19-2005, 02:22 AM | #5 |
Eh? It wasn't my question, it was Ignited's =P. And I think tassadar already did answer ignited's main question, I was answering his other one. But yea, what you said should do the trick ; 0. |
| 11-19-2005, 02:45 AM | #6 |
ok then. Well i made the trigger for ignited then. goes as such Code:
Events
Unit- a unit begins casting an ability
conditions
Actions
Set Integer_Percent(variable) = (random integer between 1 and 5) (20%chance)
If (all conditions are true then actions, else actions)
if conditions
Integer_percent equal to 1
Then actions
Unit- set mana of (triggering unit) to ((mana of triggering unit) + max mana of unit/(10/3))
Else Actions
Do nothingYou might want to add conditions such as the unit needing that evasion ability you talked about, but thats how the trigger works, tested it and everything. And technically you dont need an if then multiple actions, only an if then action. but the multiple action ones are easier to change. |
| 11-19-2005, 09:35 PM | #7 |
Oh, well that explains a lot. :P Thanks a lot you guys. ![]() |
