Re: Scripting command questions
Posted: 28 Jun 2017, 10:59
you have to wrap the whole statement in another pair of brackets
But that was only the official compiler limitation? IIRC there is another limitation about script commands which is higher than the lines limitation.elypter wrote:(LIMITATION) Maximum of code lines in a script is 3014
I've found the address 0x5EAD76 in 9.6f or 11.44 which stores the boolean value (1 byte) for displaying names. Here is an example of toggling on/off displaying player names dynamically:
Code: Select all
COUNTER show_player_name_add = 6204790
COUNTER player_name_toggle = 0
// some coding stuff...
toggle_name_display:
IF (player_name_toggle = 0)
SET in = 1
SET player_name_toggle = 1
CHANGE_GANG_CHAR_RESPECT (show_player_name_add, in ,111)
RETURN
ENDIF
IF (player_name_toggle = 1)
SET in = 0
SET player_name_toggle = 0
CHANGE_GANG_CHAR_RESPECT (show_player_name_add, in ,111)
RETURN
ENDIF
RETURN