Waaaaagh
I lost all my rep and my title being a jerk
- Reaction score
- 70
Anyway to track usage of runtextmacro ?
Is there something like [NoParse][NoParse][/NoParse][/NoParse] for vJass?
A feasible work around option is cool too.
JASS:
//! textmacro X takes A
struct Struct
unit G_Unit
trigger t
endstruct
function $A$_Actions takes nothing returns nothing
local Struct s=GetStructA(GetTriggeringTrigger())
call RemoveUnit(s.G_Unit)
endfunction
function Init_$A$ takes nothing returns nothing
local Struct s=Struct.create()
set s.t=CreateTrigger()
set s.G_Unit=$A$
call SetStructA(s.t,s)
call TriggerRegisterUnitEvent(s.t,G_Unit,EVENT_UNIT_DEATH)
call TriggerAddAction(s.t,$A$_Actions)
endfunction
//! noparse
function InitTrig_Trig1 takes nothing returns nothing
//! endnoparse
call Init_$A$
//! noparse
//This would be done once for each time the textmacro is run.
//However, I cannot include this in the textmacro,
//as it would copy the InitTrig a bunch.
endfunction
//! endnoparse
//! endtextmacro
//! runtextmacro X("gg_unit_hfoo_0000")
Is there something like [NoParse][NoParse][/NoParse][/NoParse] for vJass?
A feasible work around option is cool too.