Difference between revisions of "Useful Scripts"
Jump to navigation
Jump to search
m
→Simulating Global Functions in your Mod
imported>Nyteschayde (→GECK) |
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 | ||
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 | ||
EndIf | EndIf | ||