Jump to content

if and else


Recommended Posts

hi guys, lets say i have this button x , when i press x i want to display msg fail if the item broke or (else)  msg succes if the item dont broke, but every time i get the same msg fail.

Does not matter if the object succeeds or not i get the fail msg.

How can i make this function to display succes when the item dont broke?

def test(self, PopupMessage):
            if PopupMessage:
                self.PopupMessage(localeInfo.BIO_FAIL) // msg say fail
            else:
                self.PopupMessage(localeInfo.BIO_SUC) // msg sa succes

 

Ty for help

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 2

      wait() function bug

    2. 0

      Remove Party Role Bonuses

    3. 1

      Fix CBar3D

    4. 1

      set_quest_state not working

    5. 1

      Fix CBar3D

    6. 1

      Game Source Code - where to call void methods to spawn mobs, move mobs and others - in game source side -?

    7. 112

      Ulthar SF V2 (TMP4 Base)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.