HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about JASS display text

02-24-2003, 03:52 AM#1
FyreDaug
ok I get this
Code:
    if ( Trig__111_Func011001() ) then
        call DisplayTimedTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, 10, "TRIGSTR_203" )

Where it says TRIGSTR_203 (The text is meant to say "|cFFFF0000You can not go here yet.|r") where is it defined? I don't see it anywhere in this trigger the text "|cFFFF0000You can not go here yet.|r" so what am I supposed to do?
02-24-2003, 09:02 AM#2
PitzerMike
It's a pointer to the text you typed in the GUI before converting the Trigger to custom text,

I don't know where it is defined, but you can type in any text you want instead of the pointer
02-24-2003, 12:18 PM#3
FyreDaug
Oh, well I just set a global string array for errors like that instead. I coulnd't figure it out, but this works 100%.
02-24-2003, 10:56 PM#4
Guest
If you opened the war3map.j file, you would see your string defined with all the user defined globals (udg_). There are a few things defined up there that you wouldn't expect. For example, have you ever noticed that you have to "select" a unit with the GUI before you can use it in a trigger? Interestingly enough, when you do this, WE also adds it to the global variable list that is in the war3map.j file. Anyway to answer your question (lol), just do what PitzerMike said.
02-25-2003, 08:32 AM#5
magnus99
Strings you type into the GUI are placed in one of the other files in the map (like somethingstrings.something... not very helpful I know :) -- if you look though them you should find it pretty easily). I'm pretty sure the game just does a search/replace for those strings when it starts or something to that effect.

magnus