HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Nedd help with my colding attack trigger

04-30-2007, 01:32 AM#1
DarthRevansith
I´m making a powerful arthas and i need him to have a cold attack... i´m trying to do it with triggers but it isn´t working. I have an idea of adding like
Trigger:
Collapse Events
Unit - A unit is attacked
Collapse Conditions
(Unit-type of (Attacking unit)) equal to (Arthas)
Collapse Actions
----- add buff ( cold or slow buff) - but i can´t find a event like unit-add buff. -----

I dont know how to use the trigger tag so ill attach the map in the post. I beg you to test it and to see what is wrong. and i have a doupt: first i set to some action to happen evry 0 sec, but the map lagged ALOT, then i set it to 0.01 and it didn´t lag ... why ??
Attached Files
File type: w3xbah.w3x (20.0 KB)
04-30-2007, 01:51 AM#2
Pyrogasm
Argh! I can't believe how many people don't realize that buffs do not give the effects of the spell!

Why not just add the Orb of Frost ability to your Arthas?

EDIT: To use the trigger tags, go to your trigger in the WE, and click Edit > Copy as Text. Then, paste that here inside the trigger tags.
04-30-2007, 03:22 AM#3
DarthRevansith
oooh ok... but as you can see i don´t wanna use the orb effect because what if arthas get a poison orb ? it wont stack. and i wanna add some effect in hit as you can see... i wanna that ball created in the attacked unit but i want it to dissapear...... please help me fixing this
04-30-2007, 03:28 AM#4
Pyrogasm
Then you're going to need an AttackDetect Engine.
04-30-2007, 12:54 PM#5
DarthRevansith
but what is wrong with my triggers ?i´m so sad i made then using all my knolage....if i can´t make this i cant make anything ! pelase tell me what´s wrong so i can correct it.

why isn´t it working ?!?!?!? please can some1 tell me so i don´t make the same mistake again =/
04-30-2007, 11:25 PM#6
Dil999
Please, give at least a day for someone to respond.
The problem is that the event 'A Unit is Attacked' sets off the trigger before the unit's projectile strikes. Also, its possible to abuse the fact that if you click to attack and then click Stop fast enough, the trigger will go off without attacking. This means you can spam attack and stop to pull off the trigger several times a second.
04-30-2007, 11:39 PM#7
Hydrolisk
That's why we have the "Search" button, the "Tutorials" section, and the "Resources" section.

BTW, if you can't make this, and it means you can't make anything, then how come you can make another post? o.O

BTW, I don't think you can add buffs (without special resources) anyways (using WE with one trigger such as "Add Buff").
05-01-2007, 03:20 AM#8
DarthRevansith
Ok... i´m trying to use the "OnAttackTemplate" (http://www.wc3campaigns.net/showthread.php?t=91354) but still i can´t get it to work.

Have a look at how i used the system:

Trigger:
Demo custom
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
((Attacking unit) has an item of type Orb of Freezing) Equal to True
Collapse Actions
Custom script: call On_Attack_Template_Spell(GetAttacker(),GetTriggerUnit(),'Afr2',1,"acidbomb")

I still don´t know what is that "acidbomb" in the end.... Afr2 is the rawcode of the cold attack ability ( tha first one... there are 2 in the undead part ) and... i think that number 1 is the level of the coldattack i wanna cast. as i wanna this to work with an item and there is only 1 level of the ability it won´t upgrade to i just set it to 1 so i dont need to get the lvl of the ability. But when the hero gets the orb and attack .... NOTHING HAPPENDS OMGGG !!!
please help me !!!
05-01-2007, 03:58 AM#9
Zwan
What exactly are you trying to do? Your posts are really hard to understand.

You want multiple attack effects? Like.. both slow and cold?
05-01-2007, 04:38 AM#10
DarthRevansith
Actually i want arthas to have a cold attack. Someone sugested me to use a cold orb effect to make the cold attack. But i don´t wanna use the cold orb effect because if i use it arthas won´t be able to use any other orb effect. So i wanna make him to have the cold attack and orb effects to still work, like the venon one ( so it would be poison+ice). So i´m trying with the trigger above to make a item to work with the system, if i can make it to work i can make orbs to stack, then i would change the condition to something like
Quote:
attacking unit equal to arthas
.
so i could make his abbilities to stack with orbs. xD can you understand now ?
05-01-2007, 01:02 PM#11
emjlr3
if u had read my install notes...at all...this would be easy for u

the integer 'xxxx' is the rawcode of the dummy ability u want cast
1 refers to the level you want cast
"acidbomb" refers to the string needed to cast the dummy ability on the target
05-01-2007, 01:19 PM#12
Toink
What if there's more than 1 arthas? :/

Quote:
Originally Posted by DarthRevansith
but what is wrong with my triggers ?i´m so sad i made then using all my knolage....if i can´t make this i cant make anything ! pelase tell me what´s wrong so i can correct it.

why isn´t it working ?!?!?!? please can some1 tell me so i don´t make the same mistake again =/

Pyro already helped you by posting the link, but what do you give him? Bullshit. Then now you start to use an attackdetection engine too.. Hmm?

And dude, the On_Attack_Template_Spell cannot cast passives!
05-01-2007, 01:38 PM#13
DarthRevansith
ok i got it... i made the cold orb thing to work.... but i´m now making a venon orb and i noticied that it DOESN´T STACK ! can some1 tell me what system to use to stack things like this ?

Quote:
the cold orb i used
call On_Attack_Template_Spell(GetAttacker(),GetTriggerUnit(),'A006',1,"frostnova")

A006 is a dummy cold nova withou damge and area......

Quote:
the venon orb
call On_Attack_Template_Spell(GetAttacker(),GetTriggerUnit(),'A008',1,"shadowstrike")
the ability is shadow strike working for 3 initial damage, no missile model 3 damge per second for 3 seconds

but both orbs in the same hero don´t stack OOMGGG WHY ?!!? why can´t the dummy cast 2 abilities at the same time ?
05-01-2007, 07:55 PM#14
DarthRevansith
????? how can i make them to stack ?!!?!?!?!?!?
05-01-2007, 09:32 PM#15
Dil999
Please try to use moderately good grammar when posting, it encourages people to respond and doesn't make you look like an idiot.
They don't stack because one unit can't be doing two things at once. If you tell it to cast two spells, chances are it will do one or none, because it tries to do one order, stops, does the other.
You have to use a separate dummy for each attack.

Edit: Read this.