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
  • #1493

Closed
Open
Created Feb 14, 2024 by IonTech@I0nTech

Placeholder <scope.var.varname> does not work with nested variables

Title, you can't use the value of one variable to retrieve another.

Example Attached:

someskill-cast:
  Skills:
  - skill(s=someskill-exec;value=hello) @self
  

someskill-exec:
  Skills:
  - setvariable{var=caster.<skill.value>;val="yes hello hello";type=STRING}
  - message{m="<caster.var.<skill.value>>"} #this will return nothing
  - message{m="<caster.var.hello>"} #This will return "yes hello hello"

To be clear, this line:

  - setvariable{var=caster.<skill.value>;val="yes hello hello";type=STRING} @self

Works perfectly fine and the value can be retrieved with

  - message{m="<caster.var.hello>"}

However <caster.var.<skill.value>> which should be equal to <caster.var.hello> returns nothing.

Edited Feb 14, 2024 by IonTech
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking