• 🏆 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!

HIVE

IcemanBo
IcemanBo
Imagine opening the resource from no knowledge. He should understand why and when to use it, without having to follow internal code logics. At the moment I honestly just read out that to use it as TRVE, but without a real "real" type. So, why actually do I or someone else need it? Like, from that side, I meant.
MyPad
MyPad
Ah, thanks for the clarification. Yes, it's based on the TRVE, but with the added capability of unregistering to the Event Instance. To fire an Event instance, one can just do this:

set <whichEvent>.fire = <real>

It also has the benefit of being able to fire the event when calling it twice so you no longer have to do this:

set <realVar> = <real>
set <realVar> = <someReal>
set <realVar> = <real>

Instead, you can do it twice.

set <whichEvent>.fire = <real>
set <whichEvent>.fire = <real>

On another note, you can think of it as a vJass version of TRVE.
IcemanBo
IcemanBo
Top