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.

Modifying Mr. Mo's ABS Script Treasure System (Credits to Mr.Mo)

First of all, thanks to Mr.Mo for his wonderful Battle System, and all credits to him. (Also to Near Fantastica)
I need to do some changes in his ABS, about the treasure system. I am not a very experienced scripter, I just know a bit of Visual Basic and JASS, and that's what helped me modifying until I could.

Script: Mr.Mo's ABS AddOn to Item Tables

Details:
The treasure system in Mr.Mo's ABS 5.5 is about dropping the only item indicated in the database, and with this, creating an event of the item. I want it to be able to drop a whole Item Table, with individual probabilities for each item. There can be another script, with the monster's and item's ID list or hash, as you wish, since it makes this possible. If possible, make one event for each item dropped. Also, I want the gold and the item to range in quantities and to have probability of appearing.
Example of what I want:
Spirit

80% chance of dropping from 2 to 6 White Ties
50% chance of dropping Soul Stone
25% chance of dropping from 1 to 2 Invisibility Potion
10% chance of dropping Golden Locket
5% chance of dropping Old Diary
1% chance of dropping Ring of Invisibility

65% chance to drop from 13 to 18 gold pieces.

This quote above, possible in the Mr.Mo's ABS 5.5, that's my request.

Script:
Script.txt
This file is a Notepad Document. Paste all its contents in your Script Editor.
NOTE: I've done some changes in the code with game variables and game switches, so I would like you to change the one above inside the spoiler (or do another independent, but compatible script)
The Treasure Display Class is at the line 2145
In the line 1591 there is something to do with Treasure as well.



In Return:
Anything you want, as long it has to do with Characters, Mapping or Event Coding. In return I can also be recruited for mapping or Character Drawing for a period. ;D

Thank You!!!


Sorry about my english!
 
http://tbn0.google.com/images?q=tbn:gzh ... ages/B.jpg[/img]http://tbn0.google.com/images?q=tbn:d57V2rAvsB-jZM:http://lh3.google.com/_LLUdp7YIK2A/Rk11hZacnQI/AAAAAAAAADU/NvSaADESJmY/s800/D:%255CPer%255CAL%255CAL%2B-%2BU.jpg[/img]http://tbn0.google.com/images?q=tbn:e_jKtd2JG6t2bM:http://www.clipartguide.com/_small/0060-0503-3119-0133.jpg[/img]http://tbn0.google.com/images?q=tbn:WRrjESUvHhOANM:http://www.biblepicturegallery.com/free/Pics/P2.gif[/img]
 

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