How to clean up this messy jass

dannyboydude

Ultra Cool Member
Reaction score
33
JASS:
if ( Trig_Bank_Init_Func001Func001C() ) then
JASS:
function Trig_Bank_Init_Func001Func001C takes nothing returns boolean
    if ( not ( ConvertedPlayer(GetForLoopIndexA()) == GetTriggerPlayer() ) ) then
        return false
    endif
    return true
endfunction



What does if ( not ( blah blah == GetTrigegringPlayer() ) ) mean and return false
endif
return true ?
What does that jumble mean ?

and how does it work with [ if ( trig () ) then do stuff ]

And how would i clean this up like making it easier to read and not get confussed ?
 

Sooda

Diversity enchants
Reaction score
318
In post #2 is your answer, World Editor needs to return understandable answer every time, that is why it seemingly creates un-needed jass.

Also you can't invent out of blue new jass syntax:
JASS:
    else return false

it just isn't right.
 
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