JASS: So You Want to Learn JASS?

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
JASS:
"TRIGSTR_076"


That would be your text. You can replace that with whatever text you entered in the GUI function.
 

Vozho

Active Member
Reaction score
0
So,it is normal that jass won't remember a message created by map creator?

OK,thanks for the answer,you solved it...
 

Romek

Super Moderator
Reaction score
963
GUI messages are stored (for some unknown reason) in a separate file in the map.
TRIGSTR_## can reference those strings.

So the message is there. The map will work fine, and the string will be displayed.
It's just not in the code.

Feel free to replace that TRIGSTR_076 with your message.
 

Jack9

New Member
Reaction score
0
Mui?

I've been a programmer a long time, I've never seen the acronym "MUI" mean anything in particular. What is this supposed to stand for? (it's used in the original post and within the thread)
 

cleeezzz

The Undead Ranger.
Reaction score
268
Multiple Unit Instance-able?

means you have can multiple units use the same spell without it bugging (due to overwritten variables and such)

MPI is multiple player

so you can have 2 different units owned by 2 different players use it without bugging, (if its not MUI then, 2 units owned by the same player would bug)

if something is MUI, its also MPI
 

Jack9

New Member
Reaction score
0
Multiple Unit Instance-able?

means you have can multiple units use the same spell without it bugging (due to overwritten variables and such)

MPI is multiple player

so you can have 2 different units owned by 2 different players use it without bugging, (if its not MUI then, 2 units owned by the same player would bug)

if something is MUI, its also MPI

tyvm. Sounds like a lot of gotchas in JASS, just like I've heard ;)
 

Jedi

New Member
Reaction score
63
You should null all your local variables(except integer, real, string, boolean) at the end of function.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
do local variables leak? sorry im new.

Genereally, yes...
Though there are different ways of dealing with these 'leaks', but as good as all variables needs to be nulled ( [ljass]= null[/ljass] )except (As Jedi said) integers, reals, booleans and strings :D

And just as in GUI, you also need to do stuff as [ljass]call RemoveLocation(> Location variable here <)[/ljass] in certain variable-types :D
 

Bribe

vJass errors are legion
Reaction score
67
Actually, that list is incomplete of things you don't have to null.

You don't need to null:
Players
Triggers (except triggers that you will later destroy)
Anything that you know 100% will never be destroyed

And I should mention globals don't have to be nulled.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top