Difference between revisions of "Useful Scripts"

Jump to navigation Jump to search
112 bytes added ,  19:21, 29 December 2013
m
imported>Nyteschayde
imported>Nyteschayde
Line 388: Line 388:
       If SomeCondition == 1
       If SomeCondition == 1
         ; Let's call function Sum
         ; Let's call function Sum
         Set Example.Param1 to 2
         Set Example.Param1 to 2         ; Set parameter 1
         Set Example.Param2 to 5
         Set Example.Param2 to 5         ; Set parameter 2
         Set Example.Msg_FnSum to 1
         Set Example.Msg_FnSum to 1     ; Call Msg_FnSum on next tick
        Set SomeCondition to 3
       ElseIf SomeCondition == 2
       ElseIf SomeCondition == 2
         ; Let's call function Product
         ; Let's call function Product
         Set Example.Param1 to 2
         Set Example.Param1 to 2         ; Set parameter 1
         Set Example.Param2 to 5
         Set Example.Param2 to 5         ; Set parameter 2
         Set Example.Msg_FnProduct to 1
         Set Example.Msg_FnProduct to 1 ; Call Msg_FnProduct on next tick
        Set SomeCondition to 4
       EndIf
       EndIf


Anonymous user

Navigation menu