DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • April 21, 2019, 11:10:09 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: monsters dropping items?  (Read 3305 times)
0 Members and 1 Guest are viewing this topic.
« on: July 17, 2004, 11:50:04 AM »

I would quite like to be able to make a specific monster from the forest drop an item, say for example make the whale occasionally drop a whale's tooth when you defeat it.

I don't really have a clue how to go about doing this though, I'll probably have a trawl through the battle code later on and see if I can figure it out, but if anyone is more enlightened than me I would be very grateful if you could point me in the right direction :-)
« Reply #1 on: July 17, 2004, 11:54:54 AM »

You will need to get into the battle code.... propably into the creature editor code... add and item field for creatures.... then depending on what you want the item to be/do create a system for carrying/holding the item..... or you will have to create buff code in a table for each item if you want buffs to be given.... or if you want the items carryable like chow and potions you will need to create pages with returns for using the items.....
Mod God
Offline Offline

Posts: 1916

View Profile WWW
« Reply #2 on: July 17, 2004, 04:07:15 PM »

in the battle code, just say something like

if(creature name="whale"){
if ($chance<20)

no need to edit the creature code.

Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
94 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search