- Joined
- Mar 3, 2009
- Messages
- 327
I'm just wondering, because im about to implement them into my RPG. I know of several ways to do this, but what do you guys think is the most simple, efficient and versatile system?
How would you make the game calculate different items drop from different units?
local itempool ip = CreateItemPool()
call ItemPoolAddItemType(ip, 'I001', 1)
call ItemPoolAddItemType(ip, 'I002', 1)
call ItemPoolAddItemType(ip, 'I003', 1)
call PlaceRandomItem(ip,x,y)
local itempool ip = CreateItemPool()
call ItemPoolAddItemType(ip, 'I001', 1)
call ItemPoolAddItemType(ip, 'I002', 2)
call ItemPoolAddItemType(ip, 'I003', 3)
call PlaceRandomItem(ip,x,y)
call DestroyItemPool(ip)
set ip = null