Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Multiple Items Script troubleshooting

Hello. I?m trying to use Sephiroth?s script to allow an enemy to drop multiple items. I have the SDK 2.3 installed and the only other custom script I am running is Blizzard?s script that allows custom skills for different classes (I?m sad to see Blizzard is no longer a visitor of these boards btw). I?m getting an error when I try to run the game saying:

Script ?Extra Item Drop? line 83: SyntaxError occurred.

The order I have the custom scripts after the last default is SDK -> Particle Engine -> RSC -> Custom Skill.

Within the script to test it I created items 39, 40, and 41 (Bird Feather, Bird Egg, and Bird Meat respectively). I plugged these IDs into the enemy ID for the default cockatrice. So here is what the script looks like:

class Game_Enemy < Game_Battler
#--------------------------------------------------------------------------
# * Max Item, Weapon & Armor Drops
# ~ enemy_id => max_items
#--------------------------------------------------------------------------
Max_Item_Drops = {3}
Max_Weapon_Drops = {0}
Max_Armor_Drops = {0}
Max_Overall_Drops = {3}
#--------------------------------------------------------------------------
# * Enemy Item Drops
# ~ enemy_id => { item_id => drop_percent, ... }
#--------------------------------------------------------------------------
Enemy_Item_Drops = {39, 40, 41)
6 => {39 => 50, 40 => 10, 41 => 15}
}

I have only included a small snippet of the full script as it?s the only section I have changed anything. If any of you who are smarter at this than I could take a peek and point me in the right direction I would appreciate it. Thanks.

darkace77450

PS. I could also use a hit on how I would properly set this up to function for more than one enemy. (ie Do I have to create a full new script for every enemy? Do I have to somehow put all enemy?s multiple drops into this one script? Etc.)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top