Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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]

Reply
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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]

Reply
Thanks given by:
#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
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 131 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Battle Report Raziel 1 4,657 05-29-2020, 02:27 AM
Last Post: Whisper
   ZLSL's Battle Portraits DerVVulfman 4 3,816 11-12-2019, 04:10 AM
Last Post: DerVVulfman
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 172,776 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   Mimi's Battle Music DerVVulfman 2 6,123 11-19-2018, 04:18 AM
Last Post: DerVVulfman
   Dalissa's Battle Cry DerVVulfman 1 4,635 11-19-2018, 04:18 AM
Last Post: DerVVulfman
   ATOA Chanting Battle Animations DerVVulfman 9 10,891 01-12-2017, 01:46 PM
Last Post: Noctis
   Automatic Battle Actions Claihm 1 5,168 08-15-2016, 09:15 PM
Last Post: Melana
   Battle : No Battle End ME Kain Nobel 0 3,528 06-04-2016, 02:36 AM
Last Post: Kain Nobel
   Battle : Use Map BGM Kain Nobel 0 3,334 06-04-2016, 02:13 AM
Last Post: Kain Nobel



Users browsing this thread: