HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Zapper Item

11-25-2009, 06:37 AM#1
FootysMaXeD
Hello, I'm trying to make an item for my map that is different than the generic "Cloak of Flames."

It's called the Zapper, and this is what i'm trying to get it to do:
Zaps 5 random units within 500 AoE for 50 damage, once every 3 seconds. Uses a Monsoon bolt overhead units that are hit. I don't want it to hit invulnerable units, buildings, or magic immune units.

So I know i'm gonna have to trigger this, but i'm not sure how to start.

Thanks
-FootysMaXeD
11-25-2009, 08:18 AM#2
DioD
1)

every 3 seconds

pick every unit with item

and damage 5 units around
12-27-2009, 10:34 PM#3
FootysMaXeD
How do i do this?
Quote:
Originally Posted by DioD
1)

every 3 seconds

pick every unit with item

and damage 5 units around

This is what I tried:
Trigger:
Events - Every 3 seconds of game time
Set TempGroup1 = (Units owned by (Owner of (Item carried by (Matching unit) of type Zapper)) matching (((Matching unit) is A Hero) Equal to True))
Collapse Unit Group - Pick every unit in TempGroup1 and do (Actions)
Collapse Unit Group - Pick every unit in (Random 5 units from (Units within 400 of (Position of (Position of (Picked unit)) matching (((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False))) and do (Actions)
Collapse Loop - Actions
Unit - Cause (Random unit from TempGroup1) to damage (Picked unit), dealing 50.00 damage of attack type Normal and damage type Universal.
Custom script: call DestroyGroup(udg_TempGroup1)

I need to have this MUI as well, and my trigger is not even working...
Can anyone help? :/
12-28-2009, 01:31 AM#4
DioD
owner of item is player 0 by default, soo you will never pass first condition.

also you cannot overlay forforce forgroup with GUI, since you shoud use first of groop.
12-28-2009, 04:39 AM#5
FootysMaXeD
Um...could you be a little more descriptive? I already tried my best to get this to work, and I got frustrated trying to figure out how to get everything to work together correctly.
12-30-2009, 01:14 AM#6
FootysMaXeD
So can anyone help me here?

I wrote down what I have so far in my trigger a couple posts up, and it's not working still. I'm having trouble creating a "condition" trigger where I set my TempGroup1 to be the units with the item "Zapper."
12-30-2009, 02:10 AM#7
DioD
post map with your code.
12-31-2009, 08:49 AM#8
Zyrixion
Well, one problem with what you're setting TempGroup1 to is that, while I can tell you're trying to make it take units from all players like that, it doesn't, and won't. You'd have an easier time simply adding units to the unit group using a 'For Int A' loop and running through the player indexes picking units that are both heroes and have the Zapper.
01-01-2010, 09:34 PM#9
Ant
Wouldn't pheonix fire work?
01-02-2010, 02:57 AM#10
DioD
pfire wont damage only five units, read thread before posting plz.