• 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.

[vJASS] Writing something into a text file!

Status
Not open for further replies.
Level 2
Joined
Nov 8, 2007
Messages
19
hi,

my question si really simple. i ve heard that its poosible with vJASS (cause of the OOP) to write something of your map (for example triggers or other stuff) into an text file that will be created in warcraft folder (or ist i t a folder in NewGenWE??)

is this possible??

can somebody told me how to use the function for this and whats importetn??

thanks!!!
 

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
543
call Cheat("DebugMsg: "+youstring)

"youstring" will be written into logs/war3errusers.txt
 

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
543
Actually it is
Code:
native Cheat            takes string cheatStr returns nothing

But Grimoire executes something whem you use special strings.
RTFM
 
Level 2
Joined
Nov 8, 2007
Messages
19
thanke u!

just another question.

how can i make it that it breakes a line in the written file??

and can i declar a string like this??


local string test = "
Tst it
Test it
test
it"

?? or can i write a string like thsi way into a function??

sorry for my poor english!!!
 
Status
Not open for further replies.
Top