• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Creating rows in text macro

Status
Not open for further replies.
Level 11
Joined
Apr 6, 2008
Messages
760
hi, i wanna create structs with the help of text macro like this.
JASS:
//! textmacro Effect takes NAME, TYPE

public struct $NAME$_Data
$TYPE$
endstruct

//! endtextmacro

library ASDF

//! runtextmacro Effect("Effect","(Things i want in my struct)")

i want $TYPE$ to be e.g

JASS:
unit u
unit t
real dur
real maxdur

//! runtextmacro Effect("Effect","unit u unit t unit dur real maxdur") like that but in like rows

is this posible?
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
its not possible because text macro doesnt go over limits that blizzard allowed
its programmed to create texts when compiling map
What you said is adding new texts to war3map.j depending on variables

Well your situation has little differences with what Ive said but still based on same problem
 
Status
Not open for further replies.
Top