Sorry for the late reply, but...
QUOTE
why is the HP lowered to 1 when you choose a difficulty?
My difficulty script changes the actor's stats, not the monster's.
CODE
def base_maxhp
n = actor.parameters[0, @level]
n *= $game_variables[MNK_Difficulty_Select::DIFFICULTY_STAT_VAR[0]]; n /= 100
return n
end
That code sets the inital maxHP to whatever the variable is equal to. But since we dividing 100/100, it's set equal to 1.
CODE
def setup(actor_id)
munkis_setup(actor_id)
$game_variables[MNK_Difficulty_Select::DIFFICULTY_STAT_VAR[0]] = MNK_Difficulty_Select::DIFFICULTY_STAT_VAR[1]
end
This sets the variable to whatever value you tell it to.
CODE
def choice_1
$game_switches[MNK_Difficulty_Select::SELECTION_MADE] = true
$game_variables[MNK_Difficulty_Select::DIFFICULTY_STAT_VAR[0]] += 15
Audio.se_play("audio/se/"+MNK_Difficulty_Select::SELECTION_SE,100,100)
$game_switches[6] = true
return_scene
end
def choice_2
$game_switches[MNK_Difficulty_Select::SELECTION_MADE] = true
Audio.se_play("audio/se/"+MNK_Difficulty_Select::SELECTION_SE,100,100)
$game_switches[6] = true
return_scene
end
def choice_3
$game_switches[MNK_Difficulty_Select::SELECTION_MADE] = true
$game_variables[MNK_Difficulty_Select::DIFFICULTY_STAT_VAR[0]] -= 15
Audio.se_play("audio/se/"+MNK_Difficulty_Select::SELECTION_SE,100,100)
$game_switches[6] = true
return_scene
end
def choice_4
$game_switches[MNK_Difficulty_Select::SELECTION_MADE] = true
$game_variables[MNK_Difficulty_Select::DIFFICULTY_STAT_VAR[0]] -= 30
Audio.se_play("audio/se/"+MNK_Difficulty_Select::SELECTION_SE,100,100)
$game_switches[6] = true
return_scene
end
This part makes any final changes you need to make.
QUOTE
And is there anyway to make certain events trigger depending what difficulty you are on?
Yes there is a way to do that. I think that may be where that random $game_switches line came from, but I'd recommend you use a different switch ID for each difficulty.
This post has been edited by munkis: Mar 5 2012, 06:05 AM