Bug Closed · Resolved

[Build 4704] Variable caster and skill scopes not working

#4280 opened by Unknown 3 years ago

Unknownreported this bug

Summary

Some variable scopes work incorrectly on the latest dev builds

Steps to reproduce

https://pastebin.com/KTRH63qd

Current behavior

Using variable scope "caster" leads to setVariable not register variable in some cases (Randomly) Using variable scope "skill" leads to "UNDEFINED" on retrieving <skill.var.variable>

Intended correct behavior

Using variable scope "caster" in setVariable mechanic should register the variable and store it in the caster entity Using variable scope "skill" should lead to proper results on retrieving <skill.var.variable>

Server log file

https://pastebin.com/LxNp1JsF

Debug log snippet

https://pastebin.com/0fuVUJjY

Proposed fixes

Looking into latest changes of variables/placeholders work?

Unknowncommented

Seconded. This is a thing.

MyMob:
  Type: PIG
  Options:
    NoAI: true
  Skills:
  - skill{s=[
        - setvariable{var=skill.block;type=STRING;value="<target.block.type>"} @SelfLocation{y=-2}
        - delay 0
        - message{msg="<skill.var.block>"} @PIR{r=10}
    ]} ~onTimer:100
Unknowncommented

Confirmed. Marked as Bug. Waiting for developer fix.

Sign in to join the discussion.