How do i make a spell that gives a 20% chance to -armor?

Revengez

New Member
Reaction score
1
Yes. I need help with this. I'm curious on how to make a passive spell that has a % chance to curse a unit when it attacks... +rep for help pls and ty.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Do you mean Curse the attacked unit or attacking unit?

If you mean attacked unit, simply use Orb of Lightning (new)

Else, you need to trigger it all
 

Revengez

New Member
Reaction score
1
I want a % chance on attack, (i'm making a tower) that the unit thats being attacked will get corrupted, and suffer a - armor penalty.
 

Genkora

Frog blast the vent core!
Reaction score
92
you could make the passive an aura that only affects the caster. So that way you could:

Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacking unit) has buff Devotion Aura) Equal to True
    Actions

then make your random numbers rolled. Or do what bob said, although I have never used lightning orb (new)

edit - instead of devotion aura the buff would obviously be whatever it is supposed to be
 

SwedishChef

New Member
Reaction score
32
okey do a trigger with a dummyspell

event - unit is attacked
condition - unit has buff (your buff for passive skills)
random integer between 1-100 lesser than or equal to 5*real level of passive spell (lvl 1 5%, lvl2 10%, lvl3 15%, lvl4 20%, lvl5 25% to decrease armor)
action - create dummy unit (dummy unit with f.ex. fearie fire)
add expiration timer to last created unit 1 sec
order last created unit to fearie fire attacking unit

I'm sitting on wrong computer so i dont have the editor in front of me but this is how it looks, if you have any question just ask in this thread. (Maby i can do it if i have time and are on the right computer):thup:
 

Azlier

Old World Ghost
Reaction score
461
Is the Orb of Corruption percent fueled? If not, you can modify Orb of Lightning to cast an Acid Bomb based spell on attack.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Yeah, what azlier said
Except Orb of Lightning (new) has a small bug with towers
You need to manually order to attack the target, as auto-acquired units will not trigger the orb
To fix this, make a trigger that detects when a unit acquires a target
If triggering unit has your ability, order triggering unit to attack acquired unit
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Event
A unit is attacked

Condition
The unit has the passive ability

Action
If GetRandomInt(1,100)<20 then
<ur curse code here><3
 

Zealot

Member
Reaction score
11
I think this would be best as a trigger, just like Scientific said use a dummy unit to cast Faerie Fire, and modify it's buff to the icon of corruption, change its description and just set the armor decrease of faerie fire as you like. Here's a trigger example:

Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Random integer number between 1 and 100) Less than or equal to 20
      • (Level of Tower Passive for (Attacking unit)) Greater than 0
    • Actions
      • Unit - Create 1 Dummy for (Owner of (Attacking unit)) at (Position of (Attacked unit)) facing Default building facing degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit - Add Faerie Fire to (Last created unit)
      • Unit - Order (Last created unit) to Night Elf Druid of the Talon - Faerie Fire (Attacked unit)


Just change the Tower Passive ability I put there to your towers ability and make it disabled, I hope I managed to help you.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Sticking with the desserts for now the latest recipe is Fried Apple Pies - https://www.thehelper.net/threads/recipe-fried-apple-pies.194297/
  • The Helper The Helper:
    Finally finding about some of the bots that are flooding the users online - bytespider apparently is a huge offender here - ignores robots.txt and comes in from a ton of different IPs
  • Monovertex Monovertex:
    @The Helper I'm really not seeing the "Signature" link in the sidebar on that page. Here's a screenshot:
  • The Helper The Helper:
    I have reported it - I was wondering why nobody I have given sigs to over the last few years have used them

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top