Server Totals
Wilderness - (4)
Le'Or - (1)
Ferrell - (0)
Elysia - (0)
M'Chek - (0)
Deglos - (0)
Visimontium - (0)
Underdark - (0)
Mikona - (0)
Total players: 5
  • Ebony Order
    Album name: DM Events
    Uploaded by: Ronan
    Uploaded: Wed Aug 20, 2014 12:04 am

Links Menu

Gold won't drop alone ?

Moderators: Nighthawk4, Dungeon Masters

Gold won't drop alone ?

PostAuthor: Neve » Thu Jul 31, 2003 5:34 pm

For some reason I can't get gold-only dropoffs. I tried to hard code a set amount of gold that is spawned on a creature onSpawn, and onDeath, but the gold only drops off when there's a gem or anything else dropping along aswell. Any idea why this is ? I tried the CreateGold function aswell.

Code: Select all
    int Treasure = d20();

    if(Treasure <= 10) dbCreateItemOnObject("NW_IT_GOLD001", OBJECT_SELF, FloatToInt(GetChallengeRating(OBJECT_SELF)) * d6() + 15);
    if(Treasure <= 15) CreateGem (OBJECT_SELF, GetLastKiller(), TREASURE_MEDIUM, FloatToInt(GetChallengeRating(OBJECT_SELF)) * d2());
- As you gaze unknowingly into the seemingly infinite depths of the optics of this altogether passionate embodiment of insatiability, you experience a gradual realisation that the heavily-embellished vocabulary scattered lavishly throughout the sentence you are currently reading is indisputably nothing greater than a generous ration of masculine bovine faeces.
User avatar
Prince of Bloated Discourse
Posts: 192
Joined: Mon Apr 14, 2003 4:09 pm
Location: The Netherlands

Return to NWN Scripting

Who is online

Registered users: Bing [Bot], Google [Bot]