![]() |
![]() +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: Code Support (https://www.save-point.org/forum-20.html) +--- Thread: ![]() |
RE: Lead Actor Swapper script error - kyonides - 09-06-2025 0. In ![]() 1. Yes, that internal value will get replaced automatically. ![]() 2. It looks for anybody in that specific position. The script doesn't know or care about previous swaps. ![]() 3. So everybody hates Basil now!? ![]() Here's the updated script! ![]() Please read the embedded comments. ![]() Code: # * Kuick Leader Swap XP * # RE: Lead Actor Swapper script error - Ace_V - 09-06-2025 0. Got it! I figured as much from previous custom scripts (and the behavior when I selected a value of 1) 1. OK! 2. This is perfect. ![]() 3. I know, right? What did he ever do (I remember him as a peacemaker) ![]() 4. I tested out the updated script, and tried this set-up for a test event: Code: @> Conditional Branch: [Aluxes] is in the party But nothing seems to happen. ![]() RE: Lead Actor Swapper script error - kyonides - 09-06-2025 ![]() ![]() Here's the fixed code! Code: # * Kuick Leader Swap XP * # RE: Lead Actor Swapper script error - DerVVulfman - 09-06-2025 (09-06-2025, 05:49 AM)Ace_V Wrote: Thank you so much for these two scripts!! I tried them both but Dervv's script seems to only move around the caterpillar and not the main character? (the three characters behind do swap around, but it duplicates the lead into the second, then into the third, and fourth, but the lead doesn't swap out for some reason.) I'm puzzled. It works just as its meant with no duplication of the lead actor. Video attached. Couple that, it affects the entire party, and not just the caterpillar system. For any caterpillar script, the party leading the caterpillar script must be the actual party leader, not some designated temp leader. So the party itself must reflect who is in the lead. The caterpillar system is completely dependent upon the party and its order. You and kyonides seem to be in a more compatible set of time-zones, so I'll back away from the repair. However, if you have an issue with my script not functioning as above that there may also be something else in play. RE: Lead Actor Swapper script error - Ace_V - 09-07-2025 (09-06-2025, 10:42 AM)kyonides Wrote: This works perfectly now!! Also reorders the party in the menu and is really easy to implement the script call. I'm going to go through my older quests to swap characters around. Thank you so much, kyonides! (09-06-2025, 01:37 PM)DerVVulfman Wrote:(09-06-2025, 05:49 AM)Ace_V Wrote: Thank you so much for these two scripts!! I tried them both but Dervv's script seems to only move around the caterpillar and not the main character? (the three characters behind do swap around, but it duplicates the lead into the second, then into the third, and fourth, but the lead doesn't swap out for some reason.) It really is odd! I tested your script on a blank project that also contained my game's scripts.rxdata just now and it still duplicates the lead for some reason. ![]() I appreciate all the help with this request despite the time zone difference! It also gave me a reason to look over my game's various scripts and I began rediscovering what my 2005 self was tinkering with back then. (among other things, I had forgotten I implemented a janky regen script that involved changing some of the standard scripts instead of being a new entry in itself, and it changed the regen text color as well) The little break from graphics and event-work was also refreshing. RE: Lead Actor Swapper script error - DerVVulfman - 09-07-2025 (09-07-2025, 04:46 AM)Ace_V Wrote: It really is odd! I tested your script on a blank project that also contained my game's scripts.rxdata just now and it still duplicates the lead for some reason. Its not a blank script if it contains your game's current scripts.rxdata. A blank project with only those scripts that come default are the test, such as this: ![]() Otherwise, you may have other code that is itself interfering... rewrites or direct edits otherwise. Content you may have forgotten. |