Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the type string. You can see all the information about this type keyword HERE.

[types] string No New Posts Jassdoc

Started by
moyack

0 Members and 1 Guest are viewing this topic.

[types] string
on: August 10, 2020, 12:56:31 PM

JASS strings are represented inside "" (example: "example") , there are 2 null values for strings, "" and null.

Strings in JASS may contain carriage returns without causing any trouble.

Localized Strings

Using TRIGSTR_ at the start of the string might make the game read a string from the wts file, for example: "TRIGSTR_001" will be replaced by the game with the string number 1 of the wts file.

Only a few natives will consider the TRIGSTR_ preffix, usually the natives that handle text messages or names are the only ones that consider this.

Control Characters

\n\r Represents a carriage return, you can choose between using a single carriage return or just this control character.

\" Allows to include quotes inside strings, using \" is the same as using a single " without closing the string.

\\ Allows to use the \ character, because a single \ is used for control, whenever you use \\ the game considers it a single \ , if you only place a single \ it may cause a compiler crash.

Formatting

|cAARRGGBB Will change the color of the next text of the string , AA is alpha, RR is red, GG is green and BB is blue. The colors are used in hex values, example: |cffcc1100

|r Will reset the color of the text back to normal.

|n New line, equivalent to carriage return, but this might not work correctly on some natives.


 

Started by moyack

Replies: 3
Views: 4325
Jassdoc

Started by Magtheridon96

Replies: 1
Views: 8724
Codes & Snippets

Started by Purgeandfire

Replies: 3
Views: 11372
Codes & Snippets

Started by moyack

Replies: 40
Views: 59341
Jass Theory & Questions

Started by Sourc[e]x

Replies: 2
Views: 9076
Jetcraft Editor
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...