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.sizeIs 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
endAgain, I am still without my main PC and RPGMaker.

![[Image: QrnbKlx.jpg]](https://i.imgur.com/QrnbKlx.jpg)
![[Image: sGz1ErF.png]](https://i.imgur.com/sGz1ErF.png)
![[Image: liM4ikn.png]](https://i.imgur.com/liM4ikn.png)
![[Image: fdzKgZA.png]](https://i.imgur.com/fdzKgZA.png)
![[Image: sj0H81z.png]](https://i.imgur.com/sj0H81z.png)
![[Image: QL7oRau.png]](https://i.imgur.com/QL7oRau.png)
![[Image: uSqjY09.png]](https://i.imgur.com/uSqjY09.png)
![[Image: GAA3qE9.png]](https://i.imgur.com/GAA3qE9.png)
![[Image: 2Hmnx1G.png]](https://i.imgur.com/2Hmnx1G.png)
![[Image: BwtNdKw.png%5B]](https://i.imgur.com/BwtNdKw.png%5B)