Paste #123444: Unnamed Denizen Script Paste

Date: 2024/06/04 09:46:42 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
16
17
18
19
20
21


# for much issue, this case always runs:            
- case force_heal force_leap force_meditate force_speed force_fire:
                - define target <player.eye_location.ray_trace_target[ignore=<player>;range=<[equipped_item_script].flag[variables.base_range].mul[<[equipped_force_multiplier]>]>;raysize=<[equipped_item_script].flag[variables.base_ray_size].div[10]||0>]||<player>>


....



        - if <server.has_flag[shield<player.uuid>]>:
            - narrate <[target]>
            - narrate <[target].location>
            - if !<server.flag[shield<player.uuid>].contains[<[target].location>]> && <[target]> not matches <player>:
                - narrate "<&3>- You can't use the force on targets outside your shield!"
                - stop
        - else if <[target].is_player> && <[target]> not matches <player>:
            - if <server.has_flag[shield<[target].uuid>]>:
                - if !<server.flag[shield<[target]>].contains[<player.location>]>:
                    - narrate "<&3>- You can't use the force on targets inside a shield!"
                    - stop