| 07-05-2007, 08:55 PM | #1 |
hello people, i have few questions for u [im beginer with WE, gui and jass, but im old skul programer ]1. i need to detect when, hero who have evasion, evade attack? (so i can add some effects and actions on that) < i dont have idea how to make it :( 2. i need to make make unit group with all units targeted with AoE spell [based on shockwave] i tried to make it like this:[i will write generaly, just to see my idea, i think that i didnt saved my map so i cant copy paste that triger] when { unit cast ability = shockwave } do { add to unitgroup target of abillity being casted pick every unit from unit group and do dmg on every picked unit} basicly i made this ^ but it didnt worked, nothing happened when i cast spell... i tried with singleshot spell and it worked... i dont see whats wrong in my idea to make this spell work just note if u didnt saw: i know that stuff which i wrote isnt any WE sintax, as programer i just searsh for solution, then i process it in language which i need 3. i see some action like hero - increase stats - agi for 50, but it increase base stats, can i make that it show like bonus [with those green letters] ? i guess that this is easy^ but i was searching for it around 10min and i couldnt find it |
| 07-05-2007, 08:59 PM | #2 |
it would look something like this |
| 07-05-2007, 09:05 PM | #3 |
hmm.. that would pick all units [ally and enemy?] around hero? not in direction of shock wave? btw. guys 600sec to wait between post... oh thats really MUCH :( :( :( |
| 07-05-2007, 09:07 PM | #4 |
... fixed... only 600 sec wait cuz ur new here... so you dont spam... but it looks like youve already been annoying people otherwise.... |
| 07-05-2007, 10:28 PM | #5 |
ye ye im bad guy here :'( well as i know to read this effect units in AoE hero, or it effect just those who are effected with shockwave i want just shock wave?? if i cant find units damaged with shockwave, does it mean that i will have to use for example 3 circles AoE 250 in path between hero and and point of click? |
| 07-05-2007, 11:38 PM | #6 |
give shockwave a buff and use pick every unit within 2000 of (triggering unit) Matching Unit has buff (<placeholder buff given to shockwave>) |
| 07-06-2007, 05:38 AM | #7 |
hmm, yea that will work :) thx man what about other 2 things? |
| 07-06-2007, 06:05 AM | #8 | ||
Quote:
Quote:
|
| 07-06-2007, 07:54 PM | #9 | ||
Quote:
hmm few question unit is attacked attacked unit have buff = custom_evasion ( random number 1 to 100 ) <= 15 do { hero_hp = hero_hp + x} how to know "x" ? how to make custom text like "miss" on hero when he evade? Quote:
@TheSecretarts i tryed to add buff on shockwave and chainlighting, but units dont get that buff :S: so i cant use that way :( |
| 07-06-2007, 11:06 PM | #10 |
You have to use an attackdetect system for your custom evasion, markone. And as to disabling the ability icon, most item abilities do not show an icon. Alternatively, you can do this: |
| 07-07-2007, 08:08 AM | #11 |
what do u mean :S: Code:
Evasion
Events
Unit - A unit Is attacked
Conditions
((Triggering unit) has buff evasion ) == True
Actions
Set evadedmg = ([u]something[/u])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) <= 20
Then - Actions
Unit - Set life of (Triggering unit) to evadedmg
Else - Actionswhat should i write instead "something" |
| 07-07-2007, 09:08 AM | #12 |
There is "Event Response - Damage Done", but that only applies to the "Unit - Unit takes damage" event. As I said, you're going to need an attackdetect engine; the "a unit is attacked" event fires when the unit initiaites its attack, not when the damage occurs. |
| 07-07-2007, 09:31 AM | #13 | ||
Quote:
ok i will search for it :) thx Quote:
|
| 07-11-2007, 02:48 PM | #14 |
well i solved my problems, thx anyway... |
