HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Weird leak problem using Massinvisibility spell on enemies

05-18-2007, 01:57 PM#1
Bsycho
im using a aoe spell that hides player/ally units. it works fine if i cast it on friendly units, but as soon as i cast it on MORE than one enemy then my computer starts to run very choppy.

but enemies arent picked by the spell (i used the text messages to check this), so this really gives me a headache.

i also checked every single trigger in my map, couldnt find anything though. ideas?

Trigger:
conceal
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Conceal (flamestrike)
Collapse Actions
Set temploc[1] = (Target point of ability being cast)
Set tempgroup[1] = (Units within 250.00 of temploc[1] matching (((Owner of (Matching unit)) is in FriendlyPlayerGroup) Equal to True))
Custom script: call RemoveLocation(udg_temploc[1])
Collapse Unit Group - Pick every unit in tempgroup[1] and do (Actions)
Collapse Loop - Actions
Game - Display to (All players) the text: 1
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Picked unit) is alive) Equal to True
((Picked unit) is A structure) Equal to False
((Picked unit) is Mechanical) Equal to False
(Unit-type of (Picked unit)) Not equal to dummy (conceal)
Collapse Then - Actions
Game - Display to (All players) the text: 2
Set temploc[2] = (Position of (Picked unit))
Unit - Create 1 dummy (conceal) for (Triggering player) at temploc[2] facing (Random angle) degrees
Unit - Order (Last created unit) to Human Sorceress - Invisibility (Picked unit)
Custom script: call RemoveLocation(udg_temploc[2])
Else - Actions
Custom script: call DestroyGroup(udg_tempgroup[1])
05-18-2007, 02:09 PM#2
Histenchist
Quote:
Unit Group - Pick every unit in tempgroup[1] and do (Actions)

Do you set these units anywere?

And dont forget to set a expiring timer to your dummy unit.
05-18-2007, 02:25 PM#3
Vexorian
There is no (triggering player) in that event.

It could just be that you are never cleaning the dummy unit, it might have an attack and cause havok when there are enemies nearby, who knows?

It could also be that there's another trigger that runs when an ability is cast, and it does not have a condition and it causes the problem.
05-18-2007, 03:43 PM#4
Bsycho
ok, as i said i checked every single trigger if it would interfere. the dummy unit is based on wisp, has no attack, 3hp -1hp/s (always), invulnerable and locust.
the tempgroup[1] is set in the 2nd action.
triggering player works, its the owner of the unit which casts the ability.

i dont need your help to get the spell working, it does
its only the 'lag' problem when i cast it on multiple enemies, who dont even get picked by the trigger! (i checked it)
thats whats really strange to me
05-18-2007, 03:47 PM#5
blu_da_noob
Quote:
Originally Posted by Bsycho
triggering player works, its the owner of the unit which casts the ability.

Unless Blizzard did something weird, no it's not.

For the actual problem, what are the stats of your Flamestrike spell? If the damage interval is set to 0 it will cause this kind of intensive lag. Try setting it to 20 or whatever (assuming it doesn't do damage).
05-18-2007, 03:57 PM#6
Bsycho
thx i will try this.

but if i used triggering player often and it worked every time, this one also (except the lags).

EDIT: that did it! to be sure i just set everything to 0 including intervals, lol
man im so glad i posted here, i already searched for hours in my triggers and stuff
05-18-2007, 04:09 PM#7
Vexorian
Triggering player would return player 1 when there is no triggering player, and map tests often get you at the player 1 slot, so take a guess.

Even if it worked it would be better to use owner of triggering unit just for consistency.