• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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