08-30-2025, 02:08 PM
(This post was last modified: 08-30-2025, 02:10 PM by DerVVulfman.)
I'm wondering.....
Is this an issue where it tries to go FROM lead_actor #0 and attempts to incorrectly generate lead_actor #-1
I think you could go two different ways:
>> If you cannot go below actor #0 or past the party limit -- no cycling <<
>> Allow cycling, on going below actor #0... or past party limit... -- no cycling <<
Again, I am still without my main PC and RPGMaker.
Code:
$game_system.lead_actor = ($game_system.lead_actor - 1) % $game_party.actors.size
Is this an issue where it tries to go FROM lead_actor #0 and attempts to incorrectly generate lead_actor #-1
I think you could go two different ways:
>> If you cannot go below actor #0 or past the party limit -- no cycling <<
Code:
def update
slipknog_las_update
# Button input adjustments to lead actor
$game_system.lead_actor += 1 if Input.trigger?(Input::R)
$game_system.lead_actor -= 1 if Input.trigger?(Input::L)
# Get max party size limit
sz_limit = $game_party.actors.size - 1
# Keep lead actor in range
$game_system.lead_actor 0 if $game_system.lead_actor < 0
$game_system.lead_actor sz_limit if $game_system.lead_actor > sz_limit
end
>> Allow cycling, on going below actor #0... or past party limit... -- no cycling <<
Code:
def update
slipknog_las_update
# Button input adjustments to lead actor
$game_system.lead_actor += 1 if Input.trigger?(Input::R)
$game_system.lead_actor -= 1 if Input.trigger?(Input::L)
# Get max party size limit
sz_limit = $game_party.actors.size - 1
# Keep lead actor in range
$game_system.lead_actor sz_limit if $game_system.lead_actor < 0
$game_system.lead_actor 0 if $game_system.lead_actor > sz_limit
end
Again, I am still without my main PC and RPGMaker.
