oh okay. well i've never messed around with timer variables...i don't understand them. yeah your suggestion about the timers seems more logical, i'll give that a try some other time, i already fixed my problem. and as for the removing unit groups issue, i'll just add on alot of unitgroup variables and pretend i'm using array i guess.
maybe i'll look into wardraft or enfos map and see what they have for timer triggers/variables.
i need to learn to use the timer variables.
i have a timer on my leaderboard based on how much gold/lumber neutral hostile has. lol.
i give him some every second and take some away every minute or something like that.
btw when i did what jareph suggested it was totally meaningless and i couldn't figure out for the life of me how i was supposed to variate the variable.
here is what i did, in case you guys want to know...
this is for one player. i made 2 more sets of these triggers for the other 2 players that i needed these for. you can change the sections where it checks what player it's happening to in the players array variable. as you can see here i had 4 different variables for the unit groups variable, since i couldn't use arrays because i can't remove the units from them. (you have to remove the units from the unit groups to get rid of massive memory leak) so for the other 2 sets i had to make 8 more variables for unit groups, for a total of ten. funny thing is all my other triggers use a total of one unit group variable. but for this ability i needed to add 12 more.
also there are buff variables, 3 (2 for the other 2 sets)of those, with array of 4 each.
in case you're curious, each buff is a seperate aura buff and each of those is named appropriately and are found under the devotion aura ability under the buffs data entries.
since i put all this out there anyway...does anyone know of a way i can place the flamestrike randomly? i'm not sure i want to...but just curiously...would it take alot more editing? or would it be a really simple matter?
and in case your eye isn't so keen, this is the main method i used:
Trigger - Add to flamestrike autocast 1 <gen> the event (Time - Every 40.00 seconds of game time)
Trigger - Turn on flamestrike autocast 1 <gen>
but obviously there's alot more to it than that. anyway this was driving me crazy especially since my ability stopped working and i couldn't figure out why so i loaded up trigger from an older version of my map and worked on that along time under the impression that that old trigger worked and it didn't so i had to go back one more version and start over again hahahaha.... but as i said i fixed it finally.
btw the custom scripts below the else actions are not else actions...i've never used else actions in my maps. this format of copy and paste doesn't work so well when the forum takes out the spaces.
and for those who don't know the archer is a dummy unit.
flamestrike autolearn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Auto Flame Strike (devotion aura)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to players[0]
Then - Actions
Set flamebuff[0] = Auto Flame Strike - Level 1
Set flamebuff[1] = Auto Flame Strike - Level 2
Set flamebuff[2] = Auto Flame Strike - Level 3
Set flamebuff[3] = Auto Flame Strike - Level 4
Trigger - Add to flamestrike autocast 1 <gen> the event (Time - Every 40.00 seconds of game time)
Trigger - Turn on flamestrike autocast 1 <gen>
Trigger - Turn on flamestrike autolearn Copy <gen>
Trigger - Turn off (This trigger)
Else - Actions
flamestrike autolearn Copy
Events
Unit - A unit Learns a skill
Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) has buff flamebuff[0]) Equal to True
(Learned Hero Skill) Equal to Auto Flame Strike (devotion aura)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to players[0]
Then - Actions
Trigger - Add to flamestrike autocast 1 Copy <gen> the event (Time - Every 30.00 seconds of game time)
Trigger - Turn on flamestrike autocast 1 Copy <gen>
Trigger - Turn on flamestrike autolearn Copy Copy <gen>
Trigger - Turn off (This trigger)
Else - Actions
flamestrike autolearn Copy Copy
Events
Unit - A unit Learns a skill
Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) has buff flamebuff[1]) Equal to True
(Learned Hero Skill) Equal to Auto Flame Strike (devotion aura)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to players[0]
Then - Actions
Trigger - Add to flamestrike autocast 1 Copy Copy <gen> the event (Time - Every 20.00 seconds of game time)
Trigger - Turn on flamestrike autocast 1 Copy Copy <gen>
Trigger - Turn on flamestrike autolearn Copy Copy Copy <gen>
Trigger - Turn off (This trigger)
Else - Actions
flamestrike autolearn Copy Copy Copy
Events
Unit - A unit Learns a skill
Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) has buff flamebuff[2]) Equal to True
(Learned Hero Skill) Equal to Auto Flame Strike (devotion aura)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to players[0]
Then - Actions
Trigger - Add to flamestrike autocast 1 Copy Copy Copy <gen> the event (Time - Every 10.00 seconds of game time)
Trigger - Turn on flamestrike autocast 1 Copy Copy Copy <gen>
Trigger - Turn off (This trigger)
Else - Actions
flamestrike autocast 1
Events
Conditions
Actions
Set unitgroups1 = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to |cffBC310ERed Dragon Demon Hunter|r))
Unit Group - Pick every unit in unitgroups1 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff flamebuff[0]) Equal to True
(Owner of (Picked unit)) Equal to players[0]
Then - Actions
Set points = (Position of (Picked unit))
Unit - Create 1 Archer for (Owner of (Picked unit)) at points facing Default building facing degrees
Unit - Order (Last created unit) to Human Blood Mage - Flame Strike points
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_points)
Else - Actions
Custom script: call DestroyGroup(udg_unitgroups1)
flamestrike autocast 1 Copy
Events
Conditions
Actions
Set unitgroups2 = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to |cffBC310ERed Dragon Demon Hunter|r))
Unit Group - Pick every unit in unitgroups2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff flamebuff[1]) Equal to True
(Owner of (Picked unit)) Equal to players[0]
Then - Actions
Set points = (Position of (Picked unit))
Unit - Create 1 Archer for (Owner of (Picked unit)) at points facing Default building facing degrees
Unit - Order (Last created unit) to Human Blood Mage - Flame Strike points
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_points)
Else - Actions
Custom script: call DestroyGroup(udg_unitgroups2)
flamestrike autocast 1 Copy Copy
Events
Conditions
Actions
Set unitgroups3 = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to |cffBC310ERed Dragon Demon Hunter|r))
Unit Group - Pick every unit in unitgroups3 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff flamebuff[2]) Equal to True
(Owner of (Picked unit)) Equal to players[0]
Then - Actions
Set points = (Position of (Picked unit))
Unit - Create 1 Archer for (Owner of (Picked unit)) at points facing Default building facing degrees
Unit - Order (Last created unit) to Human Blood Mage - Flame Strike points
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_points)
Else - Actions
Custom script: call DestroyGroup(udg_unitgroups3)
flamestrike autocast 1 Copy Copy Copy
Events
Conditions
Actions
Set unitgroups4 = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to |cffBC310ERed Dragon Demon Hunter|r))
Unit Group - Pick every unit in unitgroups4 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff flamebuff[3]) Equal to True
(Owner of (Picked unit)) Equal to players[0]
Then - Actions
Set points = (Position of (Picked unit))
Unit - Create 1 Archer for (Owner of (Picked unit)) at points facing Default building facing degrees
Unit - Order (Last created unit) to Human Blood Mage - Flame Strike points
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_points)
Else - Actions
Custom script: call DestroyGroup(udg_unitgroups4)