This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
apply_status_effect [2024/02/04 16:11] – created justin | apply_status_effect [2024/02/04 16:44] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
(WIP) | (WIP) | ||
+ | |||
+ | Applies a [[status effect]] to the specified [[character]] for a duration of time. If a duration of zero is specified, the [[status effect]] will remain on the [[character]] until removed. | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | apply_status_effect() | + | apply_status_effect(status_id, character, duration) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | | | | | | | + | |status_id| |[[String]]|Yes| |
+ | |character| |[[Entity]]|Yes| | ||
+ | |duration| |[[Number]]|No| | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | apply_status_effect(); | + | apply_status_effect(" |
</ | </ | ||
// | // |