- Joined
- May 2, 2009
- Messages
- 69
I'm new to using hashtables, but they're amazing. Unfortunately, I don't know how to make my trigger cleaner by loading a variable as my key for retrieving info.
Is it possible? Or even necessary at all? I prefer it that way just because it looks cleaner, but I can deal if it's unnecessary or more difficult than it needs to be.
Thoughts?
-
Protective Sweep
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Protective Sweep - Def Q
-
Actions
- Set Def_Prot_Caster = (Casting unit)
- -------- Retrieving Stats --------
- Set Combat_AttackPower = (Load 4 of (Key (Casting unit)) from Combat_Hash)
- Set Combat_CritChance = (Load 6 of (Key (Casting unit)) from Combat_Hash)
- Set Combat_CritPower = (Load 7 of (Key (Casting unit)) from Combat_Hash)
- -------- ------------ --------
-
Events
Is it possible? Or even necessary at all? I prefer it that way just because it looks cleaner, but I can deal if it's unnecessary or more difficult than it needs to be.
Thoughts?