Check if bla = no text & bleh = no sound

Saiza

New Member
Reaction score
10
Hello. For my system I need to do this: If Message1 (local) contains no text, then dont display it, else display it. Also, if Sound1 (local) is no sound, then don't play it, otherwise play it.

I do this in GUI, but with custom scripts. (These actions):
Code:
Custom script:   call DisplayTextToForce( GetPlayersAll(), Message1 )
Code:
Custom script:   call PlaySoundBJ( Sound1 )
 

Faust

You can change this now in User CP.
Reaction score
123
if Message1 == "" then
if Sound1 == null then
 

Saiza

New Member
Reaction score
10
How can I check if it's not equal to true? I converted a trigger and it told me to write != instead of ==, but then I got error and editor shut down.
 

Faust

You can change this now in User CP.
Reaction score
123
Not equal to true is either
JASS:
!= true

or
JASS:
== false

or
JASS:
if not blah then


I don't see how the first could crash your editor
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top