Adding "Elemental weaknesses" to Non-triggered spells

Nimblest

New Member
Reaction score
0
Hi,
I was bored so I decided to make a wc3 map. I was lazy and made some basic spells by just changing the values, etc. on default wc3 spells. I'm aware that you can just change the weapon/armor types of the monsters in order to implement elemental weaknesses. However, I'm not sure how to go about putting in weaknesses for these non-triggered spells.

I'm going to use pokemon as an example (hopefully you guys know a bit about them). OK, so fire is weak against water. Let's say I have a water pokemon with a water type spell and im casting it onto a fire pokemon. How would I trigger in dealing bonus damage to the fire pokemon? I'm using GUI btw.

Thanks,
Nimblest
 

Nimblest

New Member
Reaction score
0
O and I forgot to mention that the spells im using are point-targeting spells(I think that's what you call it) rather than unit-targeting spells. What I mean is you click the ground to fire a non-homing missile at the place you clicked rather than a simple click on enemy homing missile, such as firebolt. I'm using spells such as shockwave and frost breath as the base for my spells.

@warden13
I see how that action could be used for triggered spell but is there any way to do it without using triggered spells? I'm trying to make a simple "warlock"-type game w/o making triggered spells.
 

warden13

New Member
Reaction score
32
If that's so, create invisible abilities does nothing to the heroes. For example +0 damage bonus ability named fire. Create one of them for each element. Add all units to a damage takes trigger.
Trigger1:
A Unit Enters Playable Map Area
Entering Unit is a Hero
Add New event to Trigger2 - Triggering Unit takes damage.

Trigger2:
-no event-
-no condition-
If damage source has ability Water equal to true
If triggering unit has ability Fire equal to true
Deal damage to triggering unit <Damage Taken>

If you dont get it I can show it on a map
 

Nimblest

New Member
Reaction score
0
OK thanks for the help!
I looked for a bit and now i understand your trigger. Exactly what I need. Tyvm!
 

Nimblest

New Member
Reaction score
0
Trigger2:
-no event-
-no condition-
If damage source has ability Water equal to true
If triggering unit has ability Fire equal to true


Eh,,, I just realized I can't find those conditions. I looked under Boolean Comparisons and couldn't find it >.<

Sorryyy
 

HellCraft

Member
Reaction score
19
Instead of If Unit has ability, use this:
Trigger:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Level of Fire for (Triggering unit)) Greater than 0) and ((Level of Water for (Damage source)) Greater than 0)
        • Then - Actions
          • Unit - Cause (Damage source) to damage (Triggering unit), dealing 500.00 damage of attack type Spells and damage type Normal
        • Else - Actions

The level of ability of a unit is an integer comparison, in the units category.
 

waaaks!

Zinctified
Reaction score
255
I also thought of something that may work using elemental systems without any triggering, but I don't have any clues. If I used the weapon types and armor types, it's kinda limited, what if I have 20 types of elements? thats why I created my own elemental system.

The weapon types and armor types are enough for an element system, if you want some examples, try Element TD, it is a tower defense with an element system using only Weapon types and Armor types. Good Luck!
 

Nimblest

New Member
Reaction score
0
Ah I see. I hate how these conditions and stuff are always under the categories I don't expect them to be in. Takes foreever to find them. Thanks guys :)
 

Nimblest

New Member
Reaction score
0
Trigger1:
A Unit Enters Playable Map Area
Entering Unit is a Hero
Add New event to Trigger2 - Triggering Unit takes damage.

Trigger2:
-no event-
-no condition-
If damage source has ability Water equal to true
If triggering unit has ability Fire equal to true
Deal damage to triggering unit <Damage Taken>

Add New event to Trigger2 - Triggering Unit takes damage - apparently isn't doing anything for me.

I tried adding this action to map activation as well as some other events and it still didn't work. But when I manually added units on the map and used the event:

Unit - specific unit event - firemonster0005 <gen> Takes damage for Trigger 2

then the Trigger 2 works and deals the extra damage.
 

warden13

New Member
Reaction score
32
If you don't understand feel free to ask ;)
 

Attachments

  • Element System - warden13.w3x
    11.7 KB · Views: 110
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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 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