This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| equip_item [2024/02/04 21:09] – created justin | equip_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' | ||
| ====Signature: | ====Signature: | ||
| <code python> | <code python> | ||
| - | function() | + | equip_item(character, slot_id, item_id, count) |
| </ | </ | ||
| ^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(); | + | |
| </ | </ | ||
| // | // | ||
| <WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
| - | Use the **Function** function to... | + | Use the **Equip Item** function to... |
| </ | </ | ||
| Line 26: | Line 31: | ||
| <WRAP half column> | <WRAP half column> | ||
| ====Editor Node:==== | ====Editor Node:==== | ||
| - | {{:function_node.png? | + | {{:equip_item_node.png? |
| </ | </ | ||