Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1505

Closed
Open
Created Feb 23, 2024 by IonTech@I0nTech

On latest MM Dev builds, VariableIsSet Condition does not work.

Title. When tested, the condition does not work.

Example:

test-conditions-cast:
  Skills:
  - setvariable{var=caster.somevar;value="hello"} @self
  - skill{s=test-conditiontest-exec} @self
  
test-conditions-exec:
  Conditions:
  - varisset{name=caster.somevar} orelsecast test-conditions-notset
 # - variableisset{variable=caster.somevar} true
 # - variableisset{variable=caster.somevar} false
  Skills:
  - message{m="Variable set, <caster.var.somevar>"}

test-conditions-notset:
  Skills:
  - message{m="Variable not set, <caster.var.somevar>"}

As shown above, the variable somevar is set to "hello".

However, when tested, neither the skill test-conditions-exec nor test-conditions-notset run. When testing with true/false, neither returns a result.

I believe this issue appeared around the time when nested placeholders were implemented.

A fix would be appreciated.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking