A skill if possible. I would try it on my own, but am completely overwhelmed with RGSS. I can make comments and... that's it...
Well this is just about the best I can do It was going to be all scripting but it will not give you any time to input the number I tried everything and now this is a half script - half common event code
name: Code Breaker
description: when used input a number if it matches a predefined set of numbers a spell will be automatically cast note: this only works on the first character so if you want any character to use this command you must go down to the EXTRAS section to get the script for that (as soon as I fix it)
First create a spell (name doesn't matter if you want a battle command effect rating 0) linking to a common event remember the spell id and the common event id (only if you want this to be a battle command)
goto common events
goto the common event id from the spell
Message Display Options Bottom Don't Show
(I'll make a tiny box for it later I have to study up on this first though)
Input Number : [XXXX: Name], Y Digits (remember variable id Y - any number you want)
Conditional Branch: Variable [0015: Name] == ZZZ (ZZZ is any number)
<>Force Action: Hero 1, [The Spell], Random, Execute Now (Best I can do)
<>End Event Processing
<>
End
REPEAT THIS FOR EACH CODE
AT THE END
Message: Skill Not Found OR Play SE: '057=Wrong01', 80, 100
Do all of the above for a spell with this effect now if you want a Battle Command with this effect then let's continue
Scene_Battle 4 make_basic_action_result
if @active_battler.current_action.basic == A NUMBER (make sure it matches the other one)
@skill = $data_skills[SPELL ID]
@status_window.refresh
@help_window.set_text("Code Breaker ", 1)
@common_event_id = @skill.common_event_id
@target_battlers.push(@active_battler)
for target in @target_battlers
target.skill_effect(@active_battler, @skill)
end
return
end
Scene_Battle 3 update_phase3_basic_command
when "Code Breaker"
$game_system.se_play($data_system.decision_se)
@active_battler.current_action.kind = 0
@active_battler.current_action.basic = A NUMBER (make sure it matches the above one and no other numbers match this)
phase3_next_actor
EXTRAS
the code above only works for the first character so with some editing you can add this instead (you need to give up another variable) I don't know what to set that variable equal to as of yet (watch this spot for an edit)
weird that the correction involves subtracting by 1 actor[1] is actor[0] and so on
EDIT this edit isn't fully tested so if an actor doesn't exist I don't know what will happen (possible error)
if @active_battler.current_action.basic == A NUMBER (make sure it matches the other one)
if @active_battler == $game_party.actors[0]
$game_variables[NUMBER OF VARIABLE) = 1
end
if @active_battler == $game_party.actors[1]
$game_variables[NUMBER OF VARIABLE) = 2
end
if @active_battler == $game_party.actors[2]
$game_variables[NUMBER OF VARIABLE) = 3
end
if @active_battler == $game_party.actors[3]
$game_variables[NUMBER OF VARIABLE) = 4
end
@skill = $data_skills[SPELL ID]
@status_window.refresh
@help_window.set_text("Code Breaker ", 1)
@common_event_id = @skill.common_event_id
@target_battlers.push(@active_battler)
for target in @target_battlers
target.skill_effect(@active_battler, @skill)
end
return
end
the new fork this is a double fork now
Conditional Branch: THE OTHER VARIABLE == 1
Conditional Branch: Variable [0015: Name] == ZZZ (ZZZ is any number)
<>Force Action: Hero 1, [The Spell], Random, Execute Now (Best I can do)
<>End Event Processing
End
More spells for player 1
End
Conditional Branch: THE OTHER VARIABLE == 2
Conditional Branch: Variable [0015: Name] == ZZZ (ZZZ is any number)
<>Force Action: Hero 2, [The Spell], Random, Execute Now (Best I can do)
<>End Event Processing
End
More spells for player 2
End
Conditional Branch: THE OTHER VARIABLE == 3
Conditional Branch: Variable [0015: Name] == ZZZ (ZZZ is any number)
<>Force Action: Hero 3, [The Spell], Random, Execute Now (Best I can do)
<>End Event Processing
End
More spells for player 3
End
Conditional Branch: THE OTHER VARIABLE == 4
Conditional Branch: Variable [0015: Name] == ZZZ (ZZZ is any number)
<>Force Action: Hero 4, [The Spell], Random, Execute Now (Best I can do)
<>End Event Processing
End
More spells for player 4
End
Done all I have to do is fix the Input number command's box in battle (may be awhile)