Can some one help me how to make switch on tis Script. Thanks in advance.
Code:
{$CLEO .cs}
0662: "Wolverine_Advanced"
//Created by M1ZG4RD, credits to MegaBlack for inspiration
:Settings_Read
wait 50
if
0AAB: file_exists "CLEO\WolverineAdvanced_config.ini"
else_jump @Settings_New
0AF0: 20@ = get_int_from_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "INCREASE_AMOUNT"
0AF0: 21@ = get_int_from_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "TIME_WAIT"
0AF0: 22@ = get_int_from_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "MAX_HP"
jump @WOLVERINE_Add
:Settings_New
wait 10
0AF1: write_int 4 to_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "INCREASE_AMOUNT"
0AF1: write_int 2000 to_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "TIME_WAIT"
0AF1: write_int 100 to_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "MAX_HP"
jump @Settings_Read
:WOLVERINE_Add
wait 0
if and
Player.Defined($PLAYER_CHAR)
not Actor.Dead($PLAYER_ACTOR)
else_jump @WOLVERINE_Add
2@ = Actor.Health($PLAYER_ACTOR)
wait 21@
1@ = Actor.Health($PLAYER_ACTOR)
if
003B: 1@ == 2@ // (int)
else_jump @WOLVERINE_Add
0085: 23@ = 22@ // (int)
0062: 23@ -= 20@ // (int)
if
002D: 23@ >= 1@ // (int)
else_jump @WOLVERINE_Full
005A: 1@ += 20@ // (int)
Actor.Health($PLAYER_ACTOR) = 1@
jump @WOLVERINE_Add
:WOLVERINE_Full
wait 0
Actor.Health($PLAYER_ACTOR) = 22@
jump @WOLVERINE_Add