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

About the max length a string ingame can be

Status
Not open for further replies.
It seems to be around 4000 then afterwards you'll freeze then crash usually.
[trigger=]
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Actions
Game - Display to (All players) for 30.00 seconds the text: ((String((Length of (Entered chat string)))) + chars)
Set testmaxstring = (testmaxstring + (Entered chat string))
Game - Display to (All players) for 30.00 seconds the text: ((String((Length of testmaxstring))) + chars)
[/trigger]

Though I am unsure of the max in-editor, thinking it is around 256.
 
Level 6
Joined
Jul 30, 2013
Messages
282
to have 1k characters in a load code is not practical by any means tho...

you need to be able to enter it in chat.. which is like 255 chars.. or u need to do it automatically.. in which case syncing that much data can lead to real serious problems..
 
to have 1k characters in a load code is not practical by any means tho...

you need to be able to enter it in chat.. which is like 255 chars.. or u need to do it automatically.. in which case syncing that much data can lead to real serious problems..

The max is around 128 chars in chat if I remember correctly, yeah automatically is a possible method however could just keep typing 100 chars until you finish your code then type -load before or after.
 
Status
Not open for further replies.
Top