Paste #696: timed_effect

Date: 2013/12/28 17:27:58 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10


timed_effect: 
  type: task 
  definitions: location|effect|qty|data|offset|duration 
  script: 
  - ^if %timer% matches number ^define timer <el@val[%timer%].add[0.5]>
     else define timer 0
  - ^playeffect %location% effect:%effect% qty:%qty% visibility:20 data:%data% offset:%offset%
  - wait 0.5
  - ^if %timer% > %duration% ^queue clear
     else inject s@timed_effect