In my last game I used Todd's difficulty selection script. For my new project I am, for various reasons, changing to Bloodmorphed's script, which can be found here. I would like to repeat a mod made to the old script in the new one. I set out below what happened previously in case that helps identify how to repeat it.
EDIT
Link to Todd's script http://forums.rpgmakerweb.com/index.php?/topic/2789-difficulty-selection
I want to display on the save screen which difficulty selection the player had made (using yanfly's Save engine) and that requires a variable to display text instead of numbers i.e. Easy, Normal etc.
In Todd's script this was done via a very simple mod which changed this (and also for the other 2 difficulty modes)
# * [easy] Command #-------------------------------------------------------------------------- def command_easy $game_system.todd_difficulty = 0 Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene end #-------------------------------------------------------------------------- # * [normal] Command #-------------------------------------------------------------------------- def command_normal $game_system.todd_difficulty = 1 Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene endto this
# * [easy] Command #-------------------------------------------------------------------------- def command_easy $game_system.todd_difficulty = 0 $game_variables[TODDDIFFICULTY::VARIABLE_TEXT] = TODDDIFFICULTY::EASYT Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene end #-------------------------------------------------------------------------- # * [normal] Command #-------------------------------------------------------------------------- def command_normal $game_system.todd_difficulty = 1 $game_variables[TODDDIFFICULTY::VARIABLE_TEXT] = TODDDIFFICULTY::NORMALT Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene endAs you can see, it simply inserts an extra line with the appropriate text into each section. A line setting which variable is used is inserted near the beginning of the script in the editable section.
It may be that all the above is irrelevant to Bloodmorphed's script. I have given it "just in case".
Long story short
Does anyone know how to get a variable to display in text which difficulty mode has been selected?
Thanks.
EDIT
Link to Todd's script http://forums.rpgmakerweb.com/index.php?/topic/2789-difficulty-selection
I want to display on the save screen which difficulty selection the player had made (using yanfly's Save engine) and that requires a variable to display text instead of numbers i.e. Easy, Normal etc.
In Todd's script this was done via a very simple mod which changed this (and also for the other 2 difficulty modes)
# * [easy] Command #-------------------------------------------------------------------------- def command_easy $game_system.todd_difficulty = 0 Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene end #-------------------------------------------------------------------------- # * [normal] Command #-------------------------------------------------------------------------- def command_normal $game_system.todd_difficulty = 1 Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene endto this
# * [easy] Command #-------------------------------------------------------------------------- def command_easy $game_system.todd_difficulty = 0 $game_variables[TODDDIFFICULTY::VARIABLE_TEXT] = TODDDIFFICULTY::EASYT Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene end #-------------------------------------------------------------------------- # * [normal] Command #-------------------------------------------------------------------------- def command_normal $game_system.todd_difficulty = 1 $game_variables[TODDDIFFICULTY::VARIABLE_TEXT] = TODDDIFFICULTY::NORMALT Audio.se_play("Audio/SE/" + TODDDIFFICULTY::SE, 100, 100) return_scene endAs you can see, it simply inserts an extra line with the appropriate text into each section. A line setting which variable is used is inserted near the beginning of the script in the editable section.
It may be that all the above is irrelevant to Bloodmorphed's script. I have given it "just in case".
Long story short
Does anyone know how to get a variable to display in text which difficulty mode has been selected?
Thanks.
Last edited by a moderator:
