This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
give_loot [2024/02/08 13:52] – created justin | give_loot [2024/02/08 20:00] – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Function====== | + | ======Give Loot====== |
---- | ---- | ||
(WIP) | (WIP) | ||
+ | |||
+ | Generates [[item|items]] for a loot drop one or more times, then gives the resulting [[item|items]] to the specified [[character]]. | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | function() | + | give_loot(loot_name, count, character) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | | | | | | | + | |loot_name| |[[String]]|Yes| |
+ | |count| |[[Number]]|No| | ||
+ | |character| |[[Entity]]|No| | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | function(); | + | give_loot(); |
</ | </ | ||
// | // | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Function** function to... | + | Use the **Give Loot** function to... |
</ | </ | ||
Line 26: | Line 30: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:function_node.png? | + | {{:give_loot_node.png? |
</ | </ | ||