User Tools

Site Tools


apply_status_effect

Differences

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

Link to this comparison view

Next revision
Previous revision
apply_status_effect [2024/02/04 16:11] – created justinapply_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)
 </code> </code>
  
 ^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("STATUS_0001", player, 10);
 </code> </code>
 //Results:// //Results://
apply_status_effect.1707091873.txt.gz · Last modified: 2024/02/04 16:11 by justin