• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Trigger spell

Status
Not open for further replies.
Level 1
Joined
Jun 5, 2008
Messages
151
Hi I am new on this forum. I have one question and i need some hints or maybe answers ;)

How to make spell which will damage 5*agility+200 or something like that. I cant find any good condition and action to make that work...I was thinking and I found something named "Integer" in Actions, I am think that it is what i need but i dont know how to use it properly.
 
Unit - Make Unit damage target.
When the field for the damage comes up, go to "Arithmetic". Chance the first "1.00" to another "Arithmetic". In the new Arithmetic place "5.00" in the first "1.00" field, change the "+" to "*" and in the second "1.00" field, go to "Conversion - Convert Integer to Real" and then scroll down to "Hero - Hero Attribute". Press ok, ok, and in the initial Arithmetic function, go to the second "1.00" and place "200.00".

Here, learn from it! : View attachment eg.w3x
 
Dont worry =] I will have more questions about AI and something else but first i must check that spell ;)
 
I am think you have a chance now...because I have one more quetion now ;) Will this work when i make condition:

  • Condition- Unit is casting SPELL = YES

so if i choose my own spell it will still work? and it will damage enemies only if i use this spell? or this action work for all spells at once?
 
I hate this either, but apparently, this guy lacks basic knowledge of triggering and he might interprete things wrong, that's why I added the trigger script properly.

Well i am not bad at this so i dont need full trigger ;) but thanks both of you =]
 
Hmm OK that is true :) YEEECHAAA I AM INSTALLING WC3!!!!!! Ehm but that is not that what i wanted :) I think he starts good. Look on this https://www.hiveworkshop.com/forums/spells-569/charge-1-05-a-160034/?prev=u%3DZanekok. That is easy MUI spell for your learning(not for your Pharaoh_ :grin:)

Thanks but i dont need anymore help about this spell =] I prefer to do it alone, I just wanted to know how to do this ^_^ wait a while in next 30 minutes i will create new thread about "leaks" so you can check and help me find leaks ;)
 
Thanks but i dont need anymore help about this spell =] I prefer to do it alone, I just wanted to know how to do this ^_^ wait a while in next 30 minutes i will create new thread about "leaks" so you can check and help me find leaks ;)

Aww i am not good in finding of leaks... All you must do is : have all variables and hashtables on "NULL" after end of spell
 
well maybe idk ;) i need more 15 minutes ;) to make new thread ;D there is alot =]



@EDIT:

I have few problems... First When i use AoE spell its attack everyone in range...even me and my allies, also my spell attack in a line but this trigger damage circural arena, isnt it possible to change my spell damage only? I dont want to use this trigger because it isnt workring, unless you have any other way to change it then tell me.
 
Last edited:
well maybe idk ;) i need more 15 minutes ;) to make new thread ;D there is alot =]



@EDIT:

I have few problems... First When i use AoE spell its attack everyone in range...even me and my allies, also my spell attack in a line but this trigger damage circural arena, isnt it possible to change my spell damage only? I dont want to use this trigger because it isnt workring, unless you have any other way to change it then tell me.

Actually, i know something about this, but not the part of making the damage in line.

So if you need to damage the area of enemies, but not allies and you so you need to add this.
  • Actions:
    • Set Your_Spell_Group=Units within 300 range of (casting unit) matching: (Picked Unit) belongs to an ally of (Owner of (Casting Unit)) equal to true AND (Picked Unit) is a building equal to False and (Picked Unit) is dead equal to False
    • Unit Group - Pick every unit in (Your_Spell_Group) and do (actions):
      • Loop - Actions:
        • Unit - Cause (Casting Unit) to damage (Picked Unit) for ((5x (Agility,Strengh or Intelligence (Including Bonuses))+100 of damage type Unknown
    • Custom Script: call DestroyGroup(udg_Your_Spell_Group)
EDIT: Fixed the leak ;D
Should work :)
 
Last edited:
ok thanks i will check it later and if it will work i give REP :)


If anyone else know how to make this spell attack in line then please help...I am think that it is possible somehow ;) but idk how ^_^ I give REP for helping
 
Status
Not open for further replies.
Back
Top