HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some questions

07-05-2007, 08:55 PM#1
markone
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
TheSecretArts
it would look something like this
Trigger:
OnShockwave
Collapse Events:
Unit Casts a Spell
Collapse Conditions:
Ability Being Cast is equal to Shockwave
Collapse Actions:
Collapse Pick Every Unit within 1000 of (triggering unit) matching condition (Matching Unit) is an enemy of (owner of (triggering unit)
Unit - Subtract X HP from (Picked Unit)
07-05-2007, 09:05 PM#3
markone
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
TheSecretArts
... 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
markone
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
TheSecretArts
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
markone
hmm, yea that will work :) thx man

what about other 2 things?
07-06-2007, 06:05 AM#8
Pyrogasm
Quote:
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 :(
Impossible to do; there is no way to detect when Evasion/Critical strike fire unless you trigger the entire thing yourself.

Quote:
Originally Posted by markone
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
Find an item that gives +Agility, then go to the item's abilities list and find the ability that gives the stats. Then make a new ability based off of that one that gives +50 Agility and simply add to/remove from your heroes/units when necessary.
07-06-2007, 07:54 PM#9
markone
Quote:
Originally Posted by Pyrogasm
Impossible to do; there is no way to detect when Evasion/Critical strike fire unless you trigger the entire thing yourself.
crap, so i will have to make custom Evasion...

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:
Originally Posted by Pyrogasm
Find an item that gives +Agility, then go to the item's abilities list and find the ability that gives the stats. Then make a new ability based off of that one that gives +50 Agility and simply add to/remove from your heroes/units when necessary.
i thought so, but when i usee add/remove ablity to hero, he always get it like spell [i mean u can see icon of that ablity] can i hide it??


@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
Pyrogasm
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:
Trigger:
Collapse Events
Map Initialization
Conditions
Collapse Actions
Player Group - Pick every player in (All Players) and disable YOUR ABILITY for (Picked Player)
07-07-2007, 08:08 AM#11
markone
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 - Actions

what should i write instead "something"
07-07-2007, 09:08 AM#12
Pyrogasm
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
markone
Quote:
There is "Event Response - Damage Done", but that only applies to the "Unit - Unit takes damage" event.

ok i will search for it :) thx

Quote:
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.
where i can find something about it ? :S
07-11-2007, 02:48 PM#14
markone
well i solved my problems, thx anyway...