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

[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
537
call Cheat("DebugMsg: "+youstring)

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

LeP

LeP

Level 13
Joined
Feb 13, 2008
Messages
537
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