S
sohai6769
Guest
how to create a region to hero stand and up level in every 60 seconds....
:banghead:
:banghead:
Hero
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Set TempPoint = (Center of ([COLOR="Red"]Region[/COLOR]))
Unit - Create 1 Paladin for Player 1 (Red) at TempPoint facing Default building facing degrees
Custom script: set udg_TempPoint = null
HeroIncrease
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(([COLOR="Red"]Playable map area[/COLOR]) contains NeededUnit) Equal to True
Then - Actions
Hero - Set NeededUnit Hero-level to ((Hero level of (Triggering unit)) + 1), Show level-up graphics
Else - Actions
Lvl Up Region
Events
Unit - A unit enters Region 000 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit Group - Add (Triggering unit) to Lvlupgroup
lvlup Every 60 seconds
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Lvlupgroup and do (Actions)
Loop - Actions
Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
Leave lvlup region
Events
Unit - A unit leaves Region 000 <gen>
Conditions
Actions
Unit Group - Remove (Triggering unit) from Lvlupgroup
E - every 60 sec
C -
A -
Set tempgroup = hereos in <region>
pick all in tempgroup and do
set level to level+1
call DestroyGroup(udg_tempgroup)
Untitled Trigger 001
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set TempGroup = (Units in WhateverRegion)
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Greater than or equal to 60
Then - Actions
Hero - Set (Picked unit) Hero-level to ((Level of (Picked unit)) + 1), Show level-up graphics
Unit - Set the custom value of (Picked unit) to 0
Else - Actions
Custom script: call DestroyGroup(udg_TempGroup)