I need help making ability

Cdo

New Member
Reaction score
5
ok so i have a hero call Reaper who is basically a super cool guy that awsome, now his level 6 is called collection and it's basically about him collecting a enumies soul...

now all i want to actually do with this abillity is to make is so that when cast on a unit with under 30% hp they instantly die is that possible and how do i do it?
 

troyboy

New Member
Reaction score
5
will post trigger in sec

Code:
Untitled Trigger 001
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Yur ability
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Life of (Target unit of ability being cast)) Less than or equal to (0.30 x (Max life of (Target unit of ability being cast)))
            Then - Actions
                Unit - Kill (Target unit of ability being cast)
            Else - Actions
                -------- either --------
                Do nothing
                -------- or --------
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing however much u like damage of attack type Spells and damage type Normal
 

Cdo

New Member
Reaction score
5
will post trigger in sec

Code:
Untitled Trigger 001
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Yur ability
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Life of (Target unit of ability being cast)) Less than or equal to (0.30 x (Max life of (Target unit of ability being cast)))
            Then - Actions
                Unit - Kill (Target unit of ability being cast)
            Else - Actions
                -------- either --------
                Do nothing
                -------- or --------
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing however much u like damage of attack type Spells and damage type Normal

Well this is a problem.....
ok that sounds right but like always i think i can't do this as i went to trigger editor and the only thing with unit are

unit - specific unit event
unit - player owned unit event
unit - generic unit event
unit - unit enters region
unit - unit leaves region
unit - within range
unit - life
unit - mana


do you know what i'm doing wrong or if i just don't have the trigger or what?
 

Cdo

New Member
Reaction score
5
thanks so much can u help us out with the others 1's two?
(as in other parts of this code)

(i can do the bit up to if conditions life of target etc.)
actually let me rephrase that, i have put in

Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Yur ability
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions

but at the if conditions bit i have no idea about
Life of (Target unit of ability being cast)) Less than or equal to (0.30 x (Max life of (Target unit of ability being cast)))




Ps i have done the end bit i just can't do that little bit.
 

MurderMode

Giving new meaning to co-op... slowly
Reaction score
154
the 'life of....' part would be a condition under the 'real' heading.

the '(0.30 x (Max life of (Target unit of ability being cast)' part would be an arithmetic function. You would set the first part of that function to the value '0.30', the symbol to X and the last part of the function to '(Max life of (Target unit of ability being cast)' [which i think comes under the heading 'unit - max life' and is a real value.
 

Cdo

New Member
Reaction score
5
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEP!
i have a problem i have the code
Life of (Target unit of ability being cast)) Less than or equal to (0.30 x (Max life of (Target unit of ability being cast)))

the error is that on mine it actually says target destructible not target unit but when i pasted it here it says unit i'm confused?
................. i think it will still work though anyway thanks guys
 

Cdo

New Member
Reaction score
5
Ok it didn't work all that happens is it deals 100 damage.
so here's the code anybody know what's wrong
{ps the spell is collection and the caster is called reaper}

Events
Unit - A unit starts the effect of an abillity

condition
(abillity being cast) Equal to collection

actions
If (All condition are true) then do (Then actions) else do (else actions)
if conditions
(Life of (target unit of abillity being cast) less than or equal to 0.30x (max life of (target destructible of abillity being cast)))

Then - actions
unit - kill (target of abillity being cast)

else
unit - Cause (triggering unit) to damage (target unit of abillity being cast) dealing 100 damage of attack type spell and damage type normal.
 

saw792

Is known to say things. That is all.
Reaction score
280
Well you have to change 'Target Destructible' to 'Target Unit'.
 

Cdo

New Member
Reaction score
5
Where is that can someone help me find it .

I have unit percentage health but i don't think that will help me will it?

Actually YES! ok i found it thanks guys.....
NOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!

ok guys a little more work and i've done it thanks to you.
YOU GUYS ROCK:thup:

thanks so much.
 

saw792

Is known to say things. That is all.
Reaction score
280
Keep clicking the blue part of the condition until you click directly on 'target destructible of ability being cast', and change it to 'Event Response - Target Unit of ability being cast'.

Either that or it won't let you change that. Otherwise you change Max Life of Destructible (the function) to Max Life of Unit. Or something along those lines.
 

Cdo

New Member
Reaction score
5
i'm not posting it till it's done and it's called

'camerond mod'
because i don't want a super cheesy name.

It'll be up when i'm done because untill them there won't be credits and people asked to have credit given and i'm not even shore where i'll put credits (i'll probably do it whilst it loads but hey) sorry but till then i'll just keep working.
:thup::thup::thup:

Actually change of mind i'll put credits in the loading screen so i can put it up asap but it's not near completion as i want to add loads more hero's and stuff so here's the deal i'll post it on the map database if i can
http://world-editor-tutorials.thehelper.net/maps.php



Ok it's up there as Camerons dota mod *Alpha* or at least it's submitted if you guys have feedback tell me but it's still full of errors i'm warnng you now (it won't crash though that's ok... i think...)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top