• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

TasAbilityChargeBox

This bundle is marked as pending. It has not been reviewed by a staff member yet.

Introduction


TasAbilityChargeBox is a small custom UI system for Warcraft 3 V1.31 or higher, in Lua.
It displays custom chargeBoxes over the command buttons.

Details


Each CommandButton gets 1 custom chargeBox at the bottom right corner. This boxes are only displayed when the unit has a value set for an ability that occupies this button.
The value you set by a trigger function call.

This system does not work correctly when 2 abilities try to take one slot or in group selection.


Lua:
--API
function TasAbilityChargeBox.SetValue(unit, spellCode, value)
   enforce a wanted Value for that spellCode for unit
function TasAbilityChargeBox.GetValue(unit, spellCode)
function TasAbilityChargeBox.Clear(unit)
function TasAbilityChargeBox.Init()

How to install


Requiers Warcraft 3 1.31+ or higher
  • Copy the TasAbilityChargeBox Folder (trigger Editor).
  • export
    • war3mapImported\TasAbilityChargeBox.fdf
    • war3mapImported\TasAbilityChargeBox.toc
    • WHEN USING THE EXPORT ALL BUTTON, IT CAN HAPPEN THAT THE CONTENT OF THIS FILES SWAP
    • import them into your map
  • call TasAbilityChargeBox.Init() inside a trigger that runs at 0s.
  • Installed


ChangeLog

Contents

TasAbilityChargeBox (Map)

TasAbilityChargeBox (Map)

Level 4
Joined
Oct 31, 2011
Messages
69
you change the event and then replace GetSpellAbilityId() with an abilityCode like FourCC'AHhb' or a gui variable udg_Ability which holds holy light.
  • Custom script: TasAbilityChargeBox.SetValue(GetTriggerUnit(), FourCC'AHhb', GetRandomInt(1,100))
Your system is really cool, you always have very good systems to keep the community active. Do you have plans to create a Jass version?
 
Level 4
Joined
Oct 31, 2011
Messages
69
  • Custom script: TasAbilityChargeBox.SetValue(GetTriggerUnit(), FourCC'AHhb', GetRandomInt(1,100))
How do I use this script in the vjass version?
 
Top