Trigger help - Ragerunner's Wrath

shady

Member
Reaction score
7
Hi guys it's me again,
I have a spell called Ragerunner's Wrath and i want to add trigger to insta kill target if it's below X HP, and when that happens to say: One SHOT, One KILL.

That's all, thank you.
 

Juggernaut

I don't know what to change it to
Reaction score
33
I made a simple trigger. Hope you like it. You can set how much the base damage is. And how much the HP threshold is.
 

Attachments

  • Ragerunners Wraith.zip
    17.4 KB · Views: 138

shady

Member
Reaction score
7
Thank you very much. I have another question.

Can you add % change of doing double or triple base Agy?

my best so far: ( and it's for the insta kill, i like yours ) ( but my doesn't work ^^ )

HTML:
Ragerunners Wrath
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Ragerunner's Wrath
    Actions
        Sound - Play ArcherYesAttack4 <gen> at 100.00% volume, attached to (Casting unit)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to 2
            Then - Actions
                Unit Group - Pick every unit in CH_Group and do (Actions)
                    Loop - Actions
                        Unit - Cause (Triggering unit) to damage (Picked unit), dealing 10000.00 damage of attack type Chaos and damage type Death
                        Special Effect - Create a special effect attached to the chest of (Picked unit) using ReplaceableTextures\Abilites\Spells\Other\Desecrate.mdx
                        Special Effect - Destroy (Last created special effect)
                Custom script:  call DestroyGroup(udg_CH_Group)
            Else - Actions
                Wait 0.50 seconds
                Sound - Play ArcherYesAttack3 <gen> at 100.00% volume, attached to (Casting unit)
                Sound - Play ArcherYesAttack3 <gen> at 100.00% volume, attached to (Dying unit)
                Game - Display to (All players) for 5.00 seconds the text: One |cff00ffffSHOT|...
 

Juggernaut

I don't know what to change it to
Reaction score
33
You can change the variables

CHANCE and AgILITY BONUS.
To change the chance it will proc.
And the agility bonus you will deal
Just add the sounds yourself.

Also where the bonus agility damage is done you can change " Set Integer = (Agility of (Triggering unit) (Include bonuses)) "
The "Include bonuses" to "exclude bonuses" if you want that only base agility is calculated.
 

Attachments

  • Ragerunners Wraith.zip
    20 KB · Views: 134

shady

Member
Reaction score
7
Thank you very much. I modified it a little bit. Cause all the texts and if the target is below X HP is killed before even the arrow arives ( i forgot to mention it's an arrow, but i expect from the coder to think about that, then sorry for the missing part ) I used time ( wait X seconds ) to slopw the text & killing process, if you have any other idea how to make that happens, i'm with open mind to hear your suggestions.

EDIT: found interesting "bug" in your code ( it's not broken, just doesn't work right :D ), so the code seems not to be tracking the damage or idk what, but when a target is below ( let's say ) 30 HP it shows the " one shot one kill " text, even the target is not killed. Any idea how to fix that?
 

shady

Member
Reaction score
7
Map is kind of big, but if you wanna i can upload it somewhere and give you the link.

Anyway here is the Trigger

Code:
RW Level 1
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Ragerunner's Wrath 
        (Level of Ragerunner's Wrath  for (Triggering unit)) Equal to 1
    Actions
        Set AgilityBonus = 2.25
        Animation - Play (Triggering unit)'s attack slam animation
        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 150.00
            Then - Actions
                Wait 2.00 seconds
                Unit - Kill (Target unit of ability being cast)
                Wait 0.05 seconds
                Floating Text - Create floating text that reads One |cff00ffffSHOT|... above (Triggering unit) with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
                Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
                Floating Text - Change (Last created floating text): Disable permanence
                Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
                Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
                Sound - Play ArcherYesAttack3 <gen> at 100.00% volume, attached to (Casting unit)
                Sound - Play ArcherYesAttack3 <gen> at 100.00% volume, attached to (Dying unit)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to 11
            Then - Actions
                Set Integer = (Agility of (Triggering unit) (Include bonuses))
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((Real(Integer)) x AgilityBonus) damage of attack type Magic and damage type Magic
                Floating Text - Create floating text that reads ((String(((Real(Integer)) x AgilityBonus))) + !) above (Triggering unit) with Z offset 0.00, using font size 14.50, color (41.00%, 55.00%, 13.00%), and 0.00% transparency
                Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
                Floating Text - Change (Last created floating text): Disable permanence
                Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
                Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
            Else - Actions

I think to make all the levels in 1 trigger, but not now. :D
 

Juggernaut

I don't know what to change it to
Reaction score
33
First. Do not use kill "target unit of ability being cast"
Better use the way I did it with dealing damage, this way the triggering unit gets the credit for the kill.

Upload it somewhere (and if you don't want to make it public) send it to me via PM.
 

shady

Member
Reaction score
7
I don't mind if it's public or not. Anyway here is the link. Just don't freak out of all the things i have in the map xD ( models/icons/unused spells/unused triggers )

If you have skype please send me a PM, so i can find you, if you don't have, we need to go in PM :/
 

Juggernaut

I don't know what to change it to
Reaction score
33
Ok, so since you never know when the arrow arrives you need to create another trigger.
You need only 1 trigger for all levels.

First in each trigger you need to declare the target and the caster. So create 2 unit variables.

and do:
Trigger:
  • Set RW_Target = (Target unit of ability being cast)
    • Set RW_caster = (Triggering unit)

also change this
Trigger:
  • Animation - Play (Triggering unit)&#039;s attack slam animation

with this
Trigger:
  • Animation - Play (Triggering unit)&#039;s attack-2 animation

Then where the If/then/else trigger is (the one that checks the hp)
do:
First create a new trigger then:
Trigger:
  • Trigger - Add to RW Level 4 Part2 &lt;gen&gt; the event (Unit - (Target unit of ability being cast) Takes damage)
    • Trigger - Turn on RW Part2 &lt;gen&gt;

The other trigger should look like this:
<NOTE> NO EVENT - EVENT IS PLACED IN PREVIOUS TRIGGER
Trigger:
  • RW Part2
    • Events
    • Conditions
    • Actions
      • Unit - Kill RW_Target
      • Floating Text - Create floating text that reads One |cff00ffffSHOT|... above RW_caster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
      • Sound - Play ArcherYesAttack3 &lt;gen&gt; at 100.00% volume, attached to RW_caster
      • Sound - Play ArcherYesAttack3 &lt;gen&gt; at 100.00% volume, attached to RW_Target
      • Trigger - Turn off (This trigger)
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_5">
    • </ul>
    • </div></div>
 

shady

Member
Reaction score
7
If you think i can understand you xD. I barely know triggers, if i can't add spell into my map, i don't use it, if i add it and i cause compile problems and i can't fix them, i remove the spell. So if you can add it or make the whole triggers, so i can put them. I asked do you have skype, but no answer. Anway if you have find me here: skype: cekcu_boy2.
 

Juggernaut

I don't know what to change it to
Reaction score
33
Well, OK. I used your map shrinked it and deleted units, was too lazy to copy them to another map.

Here you go:
 

Attachments

  • BotE.zip
    5.3 MB · Views: 182
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top