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.

Mr mo script multi item loot

combo

Member

Hi,

How can I configure my mr Mo script to loot add multi loot items on monsters ?

The default script is :

if ITEM_DROP
@treasures.push(Treasure_Display.new(enemy.event,"#{GOLD_DISPLAY}",[],gold)) if gold > 0
for item in treasures
case item
when RPG::Item
g = DEFAULT_ITEM_DISPLAY
g = ITEMS_DISPLAY[item.id] if ITEMS_DISPLAY[item.id] != nil
@treasures.push(Treasure_Display.new(enemy.event,"#{g}",[item],0))
when RPG::Weapon
g = DEFAULT_WEAPON_DISPLAY
g = WEAPONS_DISPLAY[item.id] if WEAPONS_DISPLAY[item.id] != nil
@treasures.push(Treasure_Display.new(enemy.event,"#{g}",[item],0))
when RPG::Armor
g = DEFAULT_ARMOR_DISPLAY
g = ARMORS_DISPLAY[item.id] if ARMORS_DISPLAY[item.id] != nil
@treasures.push(Treasure_Display.new(enemy.event,"#{g}",[item],0))
end
end

Thx.
 

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