Hello everyone, third post.
As I said in other posts, some time ago I am working on a RPG map for 1 player where he controls a warrior, an archer, a rogue and a priest, what I am looking for is a threat system like Zwiebelchen's Threat System 2.7 but due to my null knowledge of jass I do not know how to implement it, but i think that system is perfect for me.
As I said in other posts, some time ago I am working on a RPG map for 1 player where he controls a warrior, an archer, a rogue and a priest, what I am looking for is a threat system like Zwiebelchen's Threat System 2.7 but due to my null knowledge of jass I do not know how to implement it, but i think that system is perfect for me.
- What I'm looking for is for the creeps to fight in groups, that is, if the player attacks a creep of a group of three, for example, that all the creeps of that group enter combat, and then, for example if the player group of heroes dies or retires from battle (moves away), the creeps return to the position where they were initially, as "resetting" and during the return way they are invulnerable and when they finally reach their initial position, they recover all their life and mana and become vulnerable again, just like the World of Warcraft threat system.
-
Creep Revival System Initialization Copiar Copiar 2
-
Acontecimientos
-
Map initialization
-
-
Condiciones
-
Acciones
-
Set Respawn_Time = 90.00
-
Grupo de unidad - Pick every unit in (Units in (Playable map area) owned by Neutral hostil) and do (Actions)
-
Bucle: Acciones
-
Set Temp_Integer = (Temp_Integer + 1)
-
Unidad - Set the custom value of (Picked unit) to Temp_Integer
-
Set Creep_Point[Temp_Integer] = (Position of (Picked unit))
-
Set Creep_Face[Temp_Integer] = (Facing of (Picked unit))
-
Set Creep_Range[Temp_Integer] = (Current acquisition range of (Triggering unit))
-
-
-
-
-
Creep Revival System Initialization Copiar Copiar Copiar
-
Acontecimientos
-
Unidad - A unit Muere
-
-
Condiciones
-
And - All (Conditions) are true
-
Condiciones
-
(Custom value of (Triggering unit)) Mayor que 0
-
(Owner of (Triggering unit)) Igual a Neutral hostil
-
-
-
-
Acciones
-
Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
-
Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
-
Wait Respawn_Time game-time seconds
-
Custom script: call SetUnitUserData(CreateUnit(Player(PLAYER_NEUTRAL_AGGRESSIVE),i,GetLocationX(udg_Creep_Point[ii]),GetLocationY(udg_Creep_Point[ii]),udg_Creep_Face[ii]),ii)
-
Custom script: call SetUnitAcquireRangeBJ(GetTriggerUnit(),udg_Creep_Range[udg_Temp_Integer])
-
-