- Joined
- Feb 22, 2025
- Messages
- 315
Long time no see, um trying to create a damage event that happens 1 sec after you call down the infernal ability, tried storing the caster and target point of ability being cast into hashtable but can't achieve the goal, I just started to understand hashtables, might need some guide, ty!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-
Inferno Hash
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Hashtable - Create a hashtable
-


Set Inferno_Hash = (Last created hashtable)
-
-
-
CastInferno
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Inferno (Item)
-
-

Actions
-


Set Inferno_Caster = (Triggering unit)
-


Set Inferno_AOE = 300.00
-


Set Inferno_DMG = 400.00
-


Set Inferno_Target = (Target point of ability being cast)
-


Set Inferno_Caster = Inferno_TempCaster
-


Hashtable - Save Handle OfInferno_Caster as 1 of (Key Inferno_TempCaster.) in Inferno_Hash.
-


Hashtable - Save Handle OfInferno_Target as 2 of (Key Inferno_TempCaster.) in Inferno_Hash.
-


Custom script: call RemoveLocation( udg_Inferno_Target)
-


Wait 1.00 game-time seconds
-


Trigger - Run InfernoDmg <gen> (ignoring conditions)
-
-
-
InfernoDmg
-

Events
-

Conditions
-

Actions
-


Set Inferno_Caster = (Load 1 of (Key Inferno_TempCaster.) in HashTable.)
-


Set Inferno_Target = (Load 2 of (Key Inferno_TempCaster.) in HashTable.)
-


Set Inferno_Group = (Units within Inferno_AOE of Inferno_Target matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is hidden) Equal to False)) and (((Matching unit) belongs to an enemy of (Owner of Inferno_Caster).) Equal to True)).)
-


Unit Group - Pick every unit in Inferno_Group and do (Actions)
-



Loop - Actions
-




Unit - Cause Inferno_Caster to damage (Picked unit), dealing Inferno_DMG damage of attack type Spells and damage type Normal
-
-
-


Custom script: call RemoveLocation( udg_Inferno_Target)
-


Custom script: call DestroyGroup( udg_Inferno_Group)
-


Hashtable - Clear all child hashtables of child (Key (Triggering unit).) in Inferno_Hash.
-
-
-
InfernoItem Cast
-

Events
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-


(Unit-type of (Entering unit)) Equal to InfernoRemove
-
-

Actions
-


Unit - Remove (Entering unit) from the game
-
-




It's working now, anyways yeah i hate dem waits butI need that1 sec until meteor lands to apply damage, the remove trigger is cuz I'm using infernal item ability and cannot set the summoned unit to none, I just wanted the effect without making a new ability






