User Tools

Site Tools


show_inventory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
show_inventory [2021/04/21 18:52] justinshow_inventory [2024/10/14 22:31] (current) justin
Line 2: Line 2:
 ---- ----
  
-Opens the [[inventory]] window if it's not already visible.+Opens the [[inventory]] [[widget]] for the specified [[character]]
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-show_inventory()+show_inventory(character)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
- (No arguments for this function)  ||||+|character|[[Character]] whose [[inventory]] will be opened. If no [[character]] is specified, the current [[player_character|player character's]] [[inventory]] will be opened.|[[Entity]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-show_inventory();+show_inventory(party.member["Stumpy"]);
 </code> </code>
-//Results:// The [[inventory]] window will now be visible.+//Results:// The [[inventory]] [[widget]] for [[add_party_member|party member]] Stumpy will be displayed.
  
 ---- ----
show_inventory.1619056363.txt.gz · Last modified: 2021/04/21 18:52 by justin