Skript: ExprLocationOf returns null with loop-values

Created on 24 Mar 2020  路  4Comments  路  Source: SkriptLang/Skript

Description

The location of expression returns null in some scenarios.

Steps to Reproduce

loop player and player:
    broadcast "L1 %location of loop-value%"

returns <none> twice

loop player and player:
    set {_p} to loop-value
    broadcast "L2 %location of {_p}%"

works correctly

set {_p::*} to player and player
loop {_p::*}:
    broadcast "L3 %location of loop-value%"

works correctly

I have also tried with other expressions, including health and head location, but couldn't reproduce this bug with those expressions.

Expected Behavior

The expression should return the actual location, instead of <none>.

Errors / Screenshots

image

Server Information

  • Server version/platform: 1.15.2 (Paper-143)
  • Skript version: 2.5-alpha2
bug low

Most helpful comment

Use location of loop-value instead

I'm using that already?

If you're using that I don't understand the point of using location of {_p} as it's simpler to write 1 line instead of 2 or 3

Did u even look what the bug is about?

location of loop-value is the whole bug? its not about writing something simpler? Its purely a bug?

All 4 comments

Use location of loop-value instead

Use location of loop-value instead

I'm using that already?

Use location of loop-value instead

I'm using that already?

If you're using that I don't understand the point of using location of {_p} as it's simpler to write 1 line instead of 2 or 3

Use location of loop-value instead

I'm using that already?

If you're using that I don't understand the point of using location of {_p} as it's simpler to write 1 line instead of 2 or 3

Did u even look what the bug is about?

location of loop-value is the whole bug? its not about writing something simpler? Its purely a bug?

Was this page helpful?
0 / 5 - 0 ratings