Hi again,
So I have tried to search for a decent Hero Revival System.
Most of them were not MUI friendly and made huge bugs like respawning 50% of the time.
But I found this system:
http://chaosrealm.info/topic/8103180/1/
Although it seems to be MUI and confirmed by the modirators, I can't seem to get it to work.
I have modified it a bit, since I have 4 areas of save points I have added to the revival point, by string variables.
Alkarean Outpost (Default)
Vevarian City
Misty Isles Camp
Alkarah Throne Room
Here are my triggers so far:
Trigger 1:
I have skipped the Revival_TimeFactor, (Map initialization) since I do not have use for it.
I have the string Area_HeroSave default to Alkarean Outpost, so my test heroes should just respawn at that point by default, right?
So I have tried to search for a decent Hero Revival System.
Most of them were not MUI friendly and made huge bugs like respawning 50% of the time.
But I found this system:
http://chaosrealm.info/topic/8103180/1/
Although it seems to be MUI and confirmed by the modirators, I can't seem to get it to work.
I have modified it a bit, since I have 4 areas of save points I have added to the revival point, by string variables.
Alkarean Outpost (Default)
Vevarian City
Misty Isles Camp
Alkarah Throne Room
Here are my triggers so far:
Trigger 1:
-
Hero Revive1
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Hero_Revival_Integer1 Equal to 0
-
-
Then - Actions
-
Trigger - Turn on Hero Revive2 <gen>
-
-
Else - Actions
-
Do nothing
-
-
-
Set Hero_Revival_Integer1 = (Hero_Revival_Integer1 + 1)
-
Set Hero_Revival_Integer2 = (Hero_Revival_Integer2 + 1)
-
Set Hero_Revival_Unit[Hero_Revival_Integer2] = (Triggering unit)
-
Set Hero_Revival_Timer[Hero_Revival_Integer2] = ((Real((Level of Hero_Revival_Unit[Hero_Revival_Integer2]))) + 10.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Area_HeroSave[(Player number of (Owner of Hero_Revival_Unit[Hero_Revival_Integer2]))] Equal to Alkarean Outpost
-
-
Then - Actions
-
Set Hero_Revival_Point[Hero_Revival_Integer2] = (Center of Starting Spawn Point <gen>)
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Area_HeroSave[(Player number of (Owner of Hero_Revival_Unit[Hero_Revival_Integer2]))] Equal to Vevarian City
-
-
Then - Actions
-
Set Hero_Revival_Point[Hero_Revival_Integer2] = (Center of Area Vevarian City Revive <gen>)
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Area_HeroSave[(Player number of (Owner of Hero_Revival_Unit[Hero_Revival_Integer2]))] Equal to The Misty Isles
-
-
Then - Actions
-
Set Hero_Revival_Point[Hero_Revival_Integer2] = (Center of Zeppelin Misty Isles Camp <gen>)
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Area_HeroSave[(Player number of (Owner of Hero_Revival_Unit[Hero_Revival_Integer2]))] Equal to Alkarah Throne Room
-
-
Then - Actions
-
Set Hero_Revival_Point[Hero_Revival_Integer2] = (Center of Area Alkarah Throne Room <gen>)
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Hero Revive2
-
Events
-
Time - Elapsed game time is 0.03 seconds
-
-
Conditions
-
Actions
-
For each (Integer Hero_Revival_Integer_MUI) from 1 to Hero_Revival_Integer2, do (Actions)
-
Loop - Actions
-
Set Hero_Revival_Timer[Hero_Revival_Integer_MUI] = (Hero_Revival_Timer[Hero_Revival_Integer_MUI] - 0.03)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Integer(Hero_Revival_Timer[Hero_Revival_Integer_MUI])) Less than or equal to 0
-
-
Then - Actions
-
Hero - Instantly revive Hero_Revival_Unit[Hero_Revival_Integer_MUI] at Hero_Revival_Point[Hero_Revival_Integer_MUI], Hide revival graphics
-
Camera - Pan camera for (Owner of Hero_Revival_Unit[Hero_Revival_Integer_MUI]) to (Position of Hero_Revival_Unit[Hero_Revival_Integer_MUI]) over 0.00 seconds
-
Selection - Select Hero_Revival_Unit[Hero_Revival_Integer_MUI] for (Owner of Hero_Revival_Unit[Hero_Revival_Integer_MUI])
-
Set Hero_Revival_Integer2 = (Hero_Revival_Integer2 - 1)
-
Custom script: call RemoveLocation (udg_Hero_Revival_Point[udg_Hero_Revival_Integer_MUI])
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Hero_Revival_Integer2 Equal to 0
-
-
Then - Actions
-
Set Hero_Revival_Integer1 = 0
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
I have skipped the Revival_TimeFactor, (Map initialization) since I do not have use for it.
I have the string Area_HeroSave default to Alkarean Outpost, so my test heroes should just respawn at that point by default, right?