Turn switch on level up

LynX

Veteran
Veteran
Joined
Jan 6, 2014
Messages
81
Reaction score
8
First Language
Polish
Primarily Uses
Hi is there a way turning on the switch on level Up ? I have the command line  "$game_switches[16] = true" but I don't know where put this line... triend many ways on the Game_Actor but it's not working...
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV
On the conditional branch, there is a place on the 4th page of conditions to input a script line. Maybe put it there?
 

Miss Nile

Veteran
Veteran
Joined
Jul 6, 2012
Messages
464
Reaction score
411
First Language
Egyptian Arabic
Primarily Uses
RMMV
Use it in a conditional branch using a script call with the line you have as the condition.
 

Hollow

(◡‿◡✿)
Veteran
Joined
Jul 14, 2012
Messages
519
Reaction score
439
First Language
English
Primarily Uses
RMMV
class Game_Actor < Game_Battler  alias hollow_level_up_switch_game_actor_level_up level_up  def level_up    hollow_level_up_switch_game_actor_level_up    $game_switches[16] = true  endend^Put that in its own slot below Materials and above Main in your script editor. Just be sure to turn the switch off after you finish what you're using it for.
 
Last edited by a moderator:

LynX

Veteran
Veteran
Joined
Jan 6, 2014
Messages
81
Reaction score
8
First Language
Polish
Primarily Uses
Thank You all for helping me! 

class Game_Actor < Game_Battler  alias hollow_level_up_switch_game_actor_level_up level_up  def level_up    hollow_level_up_switch_game_actor_level_up    $game_switches[16] = true  endend^Put that in its own slot below Materials and above Main in your script editor. Just be sure to turn the switch off after you finish what you're using it for.
The Hollow method worked very well ! Thank You Very Much!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top