Date: 2024/06/04 09:46:42 UTC-07:00
Type: Denizen Script
# 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