HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

2 GUI Questions

05-03-2007, 02:20 PM#1
z3ryu
Hi all!
I have the following GUI related Questions:

1.I i use the "Damage Area" Trigger it also damages my own hero,allys and buildings. Can I avoid this?

2. I want an activatable Spell that activates Unholy Frenzy on the casting hero,so i create a trigger that creates a dummy unit.
Now how can I order the unit to use the spell on my hero?
05-03-2007, 02:38 PM#2
CommanderZ
1. I think you will have to use pick every unit in range... and add some conditions to the mix.

2. Use "Unit - Issue order targeting a unit" and choose Necromancer - Unholy Frenzy from the list.
05-03-2007, 03:18 PM#3
z3ryu
To 1. I mean not the area but that it damage myself. It should only damage enemy heros/units

to 2.: The problem is that i want a stronger one that i made myself =/
05-03-2007, 03:39 PM#4
Fireeye
To 1. Damage Area deals damage to all units it ignores the owner, type, etc. you have to pick all unit in range and let the caster/hero/or whatever deal the damage to the picked unit.
To 2. Create the dummy unit and then order the last created unit to cast Necromancer - Unholy Frenzy on the casting unit (in this case the hero) and if you want to make a stronger just change the ability, don't really get what's your problem with this.

1st Trigger Example:
Actions
-------- or set it = the position of the trigger unit, but don't forget to clean up --------
Custom script: call MoveLocation(udg_tmp_point,GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()))
Set tmp_grp = (Units within 100.00 of tmp_point matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) equal True))
Collapse Unit group - Pick every unit in tmp_grp and do (Actions)
Collapse Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spell and damage type Normal
Custom script: call DestroyGroup(udg_tmp_grp)
05-03-2007, 03:57 PM#5
z3ryu
1. Worked just didnt thought of that,thanks =D

And with 2. my problem is, that there is a list of spells and you cant use custom spells
05-03-2007, 04:04 PM#6
TheSecretArts
Quote:
Originally Posted by z3ryu
1. Worked just didnt thought of that,thanks =D

And with 2. my problem is, that there is a list of spells and you cant use custom spells

Actually, just Unit - Order unit to cast Necromancer - Unholy Frenzy at target
As long as you dont have two spells based on Unholy Frenzy on casting unit, you should be fine, IE: Summoner, in this map, most of the spells have the same base and it is very unpredictable when you summon...
05-03-2007, 04:26 PM#7
z3ryu
Yeah but i want it to have have 4 levels and every level the dummy should cast a stronger buff
05-03-2007, 04:28 PM#8
Captain Griffen
Just set the level of the ability for the dummy unit before ordering it to cast...
05-03-2007, 04:47 PM#9
CommanderZ
The "Necromancer - Unholy Frenzy" simply sends textual order "unholyfrenzy" to the unit. The unit will attempt to cast ANY skill with that order string.
05-03-2007, 07:36 PM#10
Dil999
People really need to take a look at triggers before asking a question :P
05-04-2007, 06:23 AM#11
Hydrolisk
Necromancer - Unholy Frenzy represents "unholyfrenzy," the spell string/order ID.
Set the level of your custom ability then order it to cast blahblah ID. KK?kk.