Abilities with Chance to work

Vunjo

New Member
Reaction score
1
How to make abilities that have a chance to block damage, get gold, heal yourself??
 

hopy

Active Member
Reaction score
64
Depends, for x chance to block damage use a Mountain Gaints (Night elf unit) Hardened Skin ability.

For a x chance to give gold on attack or anything you could use something like:

Trigger:
  • Greedisgood
    • Events
      • Unit - A unit is Attacked
    • Conditions
      • ((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True
      • (Random integer number between 1 and 2) Equal to 1
    • Actions
      • Player - Set (Owner of (Attacking unit)) Current gold to (((Owner of (Attacking unit)) Current gold) + (Random integer number between 1 and 2))


This for example has a 50% chance (Random number between 1 and 2 = 1) to give 1-2 gold on each attack.
 

educator

New Member
Reaction score
9
well for chance to block damage you can use the standard defend or evasion abilities for chance to heal use
events
a unit casts an ability
conditions
(ability being cast) equal to (ur ability)
actions
set interger_variable = random number between 1 - 100
if:then:else multiple actions
if: interger_variable less than or equal to 50
then: (set life of(casting unit) to (life of (casting unit) + (ur heal amount)
else: do nothing
this trigger will have a 50% cance to heal the caster
NOTE-some things might have the wrong name

and for gold
events
a unit casts an ability
conditions
(ability being cast) equal to (ur ability)
actions
set interger_variable = random number between 1 - 100
if:then:else multiple actions
if: interger_variable less than or equal to 25
then: add (ur amount) to (owner of(casting unit) current gold
else: do nothing
this one will have 25% chance to add 'ur amount' to the owner of the casing unit current gold
EDIT- ha ha 3 people replied at once (sort of)
 

BAkil

New Member
Reaction score
9
Trigger:
  • Random01
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Set INTEGER = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • INTEGER Equal to 1
        • Then - Actions
          • -------- Do Random 1 Here --------
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • INTEGER Equal to 2
            • Then - Actions
              • -------- Do Random 2 Here --------
            • Else - Actions
              • -------- Do Random 3 Here --------


This triggers whenever a unit casts the Animate Dead ability. You have to replace the Animate Dead ability with the one you want to use for your trigger. If you want it to occur on different occasions, such as when a unit is attacked or every so many seconds, just let me know and I'll try to help you out.

Basically you need to set an INTEGER variable (you can call it whatever you like, so long as it's variable type is integer) to a random number. Then you just have to check whatever number it is, and put whatever you want to happen in there.

For instance in the Do Random 1 Here part you can put the damage reduction thingy (which I don't know how to work )= ), in the Do Random 2 Here part you can add gold, and in the Do Random 3 Here you can heal something.

But you must replace the Animate Dead condition with the one that you want to use for your ability.

If there are any problems, anything that needs clarification or if you want me to be more specific, just let me know and I'll do my best to help ya!
 

Vunjo

New Member
Reaction score
1
Game Images

How should i change ''game images''. I mean in WE: Advanced-Game Interface and then Image.
I allready made a blue color, used wc3 image extractor with succes, imported. Now it is all black.
Should i change custom path?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • 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 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