Difference between revisions of "GenerateMediumTreasure"

From NWN Lexicon
Jump to: navigation, search
 
Line 8: Line 8:
  
 
<nwscript>
 
<nwscript>
[[void | void ]] GenerateMediumTreasure(
+
void GenerateMediumTreasure(
    [[object | object ]] oLastOpener,
+
    object oLastOpener,
    [[object | object ]] oCreateOn = OBJECT_INVALID
+
    object oCreateOn = OBJECT_INVALID
);
+
);
 
</nwscript>
 
</nwscript>
  

Latest revision as of 01:24, 26 August 2012



GenerateMediumTreasure(object, object)

Spawns in treasure as part of the random treasure distribution.

void GenerateMediumTreasure(
    object oLastOpener,
    object oCreateOn = OBJECT_INVALID
);

Parameters

oLastOpener

a Player object

oCreateOn

Container to create the item in (Default: OBJECT_INVALID)


Description

This function creates Medium level treasure based on the level of the PC passed in.



Remarks

Found in nw_o2_coninclude.nss


Requirements

#include " nw_o2_coninclude "

Version

1.22

See Also



 author: Michael Nork