Author Topic: [XP] Troop Treasures  (Read 2007 times)

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 268
  • LV: 55
  • Gender: Male
    • View Profile
[XP] Troop Treasures
« on: December 14, 2012, 03:04:41 AM »
Troop Treasures
Authors: ThallionDarkshine
Version: 0.1
Type: Treasure Add-on
Key Term: Enemy Add-on

Introduction

You ever have a troop filled with many small creatures at the start of your game? You want them to give you exp and gold, but assigning individual rewards would give the player way too much exp/gold. Enter Troop Treasures. This script allows you to setup treasures by encounter, in addition to normal rewards.

Features

  • Add as many item drops as you want, each with its own drop chance
  • Configure rewards by encounter, as well as by monster

Screenshots

It would just be a picture of the battle result window, and you all can imagine that, right?

Demo

None yet.

Script

(click to show/hide)

Instructions

To add a new treasure, go to this line:
Code: [Select]
def self.troop_treasures(troop_id)Insert treasures using this template:
Code: [Select]
when TROOP_ID then return [EXP_DROP, GOLD_DROP, ITEMS_ARRAY]To insert an item into the items array, use this template:
Code: [Select]
[DROP_CHANCE, ITEM_TYPE, ITEM_ID, ITEM_AMOUNT]The item types are as follows:
  0 - Item
  1 - Weapon
  2 - Armor


Compatibility

Might be issues with some CBSs.

Credits and Thanks

  • ThallionDarkshine

Author's Notes

None