Name | Type | is_array | initial_value |
Combat_Bool_InCombat | boolean | No | |
Combat_EnableFloatingTexts | boolean | No | |
Combat_Index | integer | No | |
Combat_PlayerGroup | force | No | |
Combat_Real_Timer | real | No | |
Combat_tempPoint | location | No | |
Combat_tempUnitGroup | group | No | |
CombatTable | hashtable | No | |
EnteringCombatText | string | No | |
LeavingCombatText | string | No | |
TheTimeBeforeLeavingCombat | real | No |
The_Flood's Combat System [Version 1.0a]
This is the first thing I've ever created by using the new Hashtables that came with patch 1.24 for Warcraft III.
I think it wen't out kinda good, even if it were my first time using those Hashtables.
Well, this system detects if a unit enters combat or leaves combat and with this system you can easily check later
if a unit is in combat or not and do something about it, check the "ATriggerThatUsesThisSystem" trigger.
Edit this system by changing three simple variables in the "CombatSystem Initialization" trigger:
// This is how much time it will take before a unit leaves the combat, IF the unit haven't attacked or got attacked.
Set TheTimeBeforeLeavingCombat = 10.00
// This is the text that will appear when a unit enters combat.
Set EnteringCombatText = |cffff0000Entering Combat!|r
// This is the text that will appear when a unit leaves combat.
Set LeavingCombatText = |cff00ff00Leaving Combat!|r
Simple, isn't it?
The import is also easy, just copy those triggers:
> CombatSystem Initialization
> CombatEnter
> CombatLeave
> CombatChecking
... and if you want an example, also copy the "ATriggerThatUsesThisSystem" trigger.
Have fun triggering and using this system! :)