Paste #109607: script

Date: 2023/05/08 08:20:15 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


my_world:
  type: world
  events:
    on delta time secondly:
      - run the_particles def:<world[world].spawn_location.y.add[20]>|FLAME|1|0
the_particles:
    type: task
    definitions: location|particle|frequency|rotation
    script:
    - define shape <list[-4.7560976,0.8536585,0|-4.5121951,0.8536585,0|-4.2682927,0.8536585,0|-3.5365854,0.8536585,0|-2.5609756,0.8536585,0|-1.8292683,0.8536585,0|-1.5853659,0.8536585,0|-1.3414634,0.8536585,0|-0.3658537,0.8536585,0|-0.1219512,0.8536585,0|0.1219512,0.8536585,0|0.8536585,0.8536585,0|1.097561,0.8536585,0|1.3414634,0.8536585,0|1.5853659,0.8536585,0|1.8292683,0.8536585,0|2.3170732,0.8536585,0|2.5609756,0.8536585,0|2.804878,0.8536585,0|3.0487805,0.8536585,0|3.2926829,0.8536585,0|3.7804878,0.8536585,0|4.7560976,0.8536585,0|-5,0.6097561,0|-4.0243902,0.6097561,0|-3.5365854,0.6097561,0|-2.5609756,0.6097561,0|-2.0731707,0.6097561,0|-1.097561,0.6097561,0|-0.6097561,0.6097561,0|0.3658537,0.6097561,0|1.8292683,0.6097561,0|2.3170732,0.6097561,0|3.7804878,0.6097561,0|4.0243902,0.6097561,0|4.7560976,0.6097561,0|-5,0.3658537,0|-3.5365854,0.3658537,0|-3.2926829,0.3658537,0|-3.0487805,0.3658537,0|-2.804878,0.3658537,0|-2.5609756,0.3658537,0|-2.0731707,0.3658537,0|-1.8292683,0.3658537,0|-1.5853659,0.3658537,0|-1.3414634,0.3658537,0|-1.097561,0.3658537,0|-0.6097561,0.3658537,0|0.3658537,0.3658537,0|1.5853659,0.3658537,0|2.3170732,0.3658537,0|2.5609756,0.3658537,0|2.804878,0.3658537,0|3.7804878,0.3658537,0|4.2682927,0.3658537,0|4.7560976,0.3658537,0|-5,0.1219512,0|-3.5365854,0.1219512,0|-2.5609756,0.1219512,0|-2.0731707,0.1219512,0|-1.097561,0.1219512,0|-0.6097561,0.1219512,0|0.3658537,0.1219512,0|1.3414634,0.1219512,0|2.3170732,0.1219512,0|3.7804878,0.1219512,0|4.5121951,0.1219512,0|4.7560976,0.1219512,0|-5,-0.1219512,0|-3.5365854,-0.1219512,0|-2.5609756,-0.1219512,0|-2.0731707,-0.1219512,0|-1.097561,-0.1219512,0|-0.6097561,-0.1219512,0|0.3658537,-0.1219512,0|1.097561,-0.1219512,0|2.3170732,-0.1219512,0|3.7804878,-0.1219512,0|4.7560976,-0.1219512,0|-5,-0.3658537,0|-4.0243902,-0.3658537,0|-3.5365854,-0.3658537,0|-2.5609756,-0.3658537,0|-2.0731707,-0.3658537,0|-1.097561,-0.3658537,0|-0.6097561,-0.3658537,0|0.3658537,-0.3658537,0|0.8536585,-0.3658537,0|2.3170732,-0.3658537,0|3.7804878,-0.3658537,0|4.7560976,-0.3658537,0|-4.7560976,-0.6097561,0|-4.5121951,-0.6097561,0|-4.2682927,-0.6097561,0|-3.5365854,-0.6097561,0|-2.5609756,-0.6097561,0|-2.0731707,-0.6097561,0|-1.097561,-0.6097561,0|-0.3658537,-0.6097561,0|-0.1219512,-0.6097561,0|0.1219512,-0.6097561,0|0.8536585,-0.6097561,0|1.097561,-0.6097561,0|1.3414634,-0.6097561,0|1.5853659,-0.6097561,0|1.8292683,-0.6097561,0|2.3170732,-0.6097561,0|2.5609756,-0.6097561,0|2.804878,-0.6097561,0|3.0487805,-0.6097561,0|3.2926829,-0.6097561,0|3.7804878,-0.6097561,0|4.7560976,-0.6097561,0|]>
    - define delay <element[1].div[<[frequency]>].as[duration].in_ticks>t
    - repeat <[frequency]>:
        - foreach <[shape]> as:vec:
            - playeffect at:<[location].relative[<[vec]>]> effect:<[particle]> offset:0.0
        - wait <[delay]>