User Tools

Site Tools


equip_item

Differences

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

Link to this comparison view

Next revision
Previous revision
equip_item [2024/02/04 21:09] – created justinequip_item [2024/02/22 21:04] (current) justin
Line 1: Line 1:
-======Function======+======Equip Item======
 ---- ----
 (WIP) (WIP)
 +
 +Equips an [[item]] to the specified slot of a [[character|character's]] equipment. If the [[item]] is stackable, the optional "count" parameter can be provided to equip more than one into the slot. Note that the [[character]] must first have the [[item]] in their [[inventory]] in order for this function to work.
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-function()+equip_item(character, slot_id, item_id, count)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-| | | | |+|character| |[[Entity]]|Yes| 
 +|slot_id| |[[String]]|Yes| 
 +|item_id| |[[String]]|Yes| 
 +|count| |[[Number]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-function();+
 </code> </code>
 //Results:// //Results://
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Function** function to...+Use the **Equip Item** function to...
 </WRAP> </WRAP>
  
Line 26: Line 31:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:function_node.png?nolink|}}+{{:equip_item_node.png?nolink|}}
 </WRAP> </WRAP>
  
equip_item.1707109760.txt.gz · Last modified: 2024/02/04 21:09 by justin