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 The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top