Actor Battle Items
#1
Actor Battle Items
Version: 1.0


Introduction

Ever wondered how your entire party can grab potions from the same grab-bag of items unhindered? Did you think that certain heroes may or should have items that another cannot? If so, this script may be for you.

This script forces the game player to actively prepare his party for combat, demanding that the player distribute items usable in combat between each party member. Actors not equipped with their own personal items will not be able to use an 'every party member' grab bag of items as before.

This system adds a pop-up window which asks if a chosen item is to be used or transferred to an individual party member. This window appears in the Item menu and the new Battle Items menu which appears for each individual actor. Transferring items between current actors is not only possible, but is an option available in-battle if so configured.



Script
The Actor Battle Items Script



Instructions
Plenty and in the script.



Example Main Menu
Only an example...
This just replaces the Skill menu option with Battle Items. You'll likely want both. Laughing + Tongue sticking out



Compatibility

This was designed with the default RPGMaker XP script set system in mind, and did change much within Scene_Item and the Scene_Battle.

Within the Scene_Item class, new code was added to the main and update methods and the update_item was completely rewritten.

Within Scene_Battle, the main, update and update_phase3 methods received new code. But the start_item_select, update_phase3_item_select, and the make_item_action_result were altered.



Credits and Thanks

Free to use, even in commercial projects. Just note that I need some form of due credit... even a mere mention in some end titles.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#2
This is a nice script

I have some ideas for additional features:

-The possibility to put items from an actor inventory back into the normal inventory
-An option to chose the amount of items to distribute, similar to the shop window for example
-A limit for distributeable items to a character. (Like only up to 5 different kinds of items)
-A stack limit for the individual items like only 5 items of each kind.
Reply }
#3
This reminds me of the Vandal Hearts item system... a "Wagon" of items, and the ability to only take up to 2 items with you. Gotta get strategic with the items you bring for each battle. 
Nobody brought an Antidote into the Antlion battle?! Uh oh! Hope we don't need it! Will Herbs be enough to out-heal poison?!  Shocked 

Such a cool concept, thanks for the scripty   Grinning
Reply }
#4
(11-04-2020, 06:32 PM)Melana Wrote: This is a nice script

I have some ideas for additional features:

-The possibility to put items from an actor inventory back into the normal inventory
-An option to chose the amount of items to distribute, similar to the shop window for example
-A limit for distributeable items to a character. (Like only up to 5 different kinds of items)
-A stack limit for the individual items like only 5 items of each kind.

Regarding the first option, you can.  While in the Battle Items menu, the pop-up window that appears when selecting an item allows you to move items back to the so-called item-bag.  This assuming that you left the configuration option for that feature alone.

However, the script itself has notes under the "MORE STUFF?" heading, this actually describing the options you just mentioned.  But it also mentions that these options were for others to include, and that I was leaving the script as it is.

Just checking if an actor has X number of items is not too difficult
# Set ID of a potion
item_id = 1
# Get the list of the party leader's items
item_list = $game_party.actors[0].items
# Get the quantity of the potions in the list
item_qty = item_list[item_list]
# Print it
p item_qty

Assuming your lead has a potion or two, this would tell you how many.  Or it will say nil if none exist.  This could be used before throwing an item into an actor's personal grab bag.  Simple things

But as I said, I'm stopping here.  This is a basic system, and it should be adaptable with other battlesystems with some work.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#5
Okay, I added some stuff to the script

- Minor usability improvements
- A stack limit for each item in the actor inventories
- An item limit for the actor inventories

Feel free to test it out I don't guarantee anything^^

Content Hidden
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   DerVV's Actor Stat Points Distributor DerVVulfman 0 566 07-16-2024, 04:46 AM
Last Post: DerVVulfman
   Battle Item Count kyonides 4 2,171 02-04-2024, 05:49 AM
Last Post: kyonides
   Dalissa's Battle Cry DerVVulfman 2 7,440 05-09-2023, 03:07 AM
Last Post: DerVVulfman
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,852 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Battle Report Raziel 1 6,989 05-29-2020, 02:27 AM
Last Post: Whisper
   ZLSL's Battle Portraits DerVVulfman 4 7,530 11-12-2019, 04:10 AM
Last Post: DerVVulfman
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 256,115 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   Mimi's Battle Music DerVVulfman 2 8,842 11-19-2018, 04:18 AM
Last Post: DerVVulfman
   ATOA Chanting Battle Animations DerVVulfman 9 17,883 01-12-2017, 01:46 PM
Last Post: Noctis
   Automatic Battle Actions Claihm 1 7,420 08-15-2016, 09:15 PM
Last Post: Mel



Users browsing this thread: 1 Guest(s)