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 145
    • Issues 145
    • 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
  • #1543

Closed
Open
Created Mar 15, 2024 by Dragon@DragonEye

Inline Target Conditions are failing to process mythic variables.

Summary

  • I am attempting to create a team system where turrets do not shoot at players that are on the same team as the turret.
  • I am assigning a variable (string) on players and turrets (caster.team) and attempting to use inline target conditions to check if the player's team matches the turret's team. If the values match, the turret will ignore that player.
  • Console does not throw any errors.

Steps to reproduce

  • Create a basic turret mob and skill.
  • Use a mythic variable or a plugin to attach data (such as a team name) to the player that can be fetched via placeholder.
  • Set a mythic variable on the turret mob with the same value.
  • Use a variableEquals inline target condition to check if the variables match, thus telling the turret to only shoot at the player if the team names do not match.
  • Observe behavior. The debug message shows the comparison working fine, but the inline target condition fails to parse.

Example Skills: (both methods fail)

# Method 1 - Using Mythic Variables
  - skill:Turret_Shoot @PIR{r=8;conditions=[  - variableequals{var=caster.team;value=<target.var.team>} false ]} ~onTimer:20
  - message{m="DEBUG - ME <caster.var.team> YOU <target.var.team>"} @PIR{r=8} ~onTimer:20

# Method 2 - Comparing Mythic Variable to CMI UserMeta Placeholder - use "/cmi usermeta [playerName] add teamName test1"
  - skill:Turret_Shoot @PIR{r=8;conditions=[  - variableequals{var=caster.team;value="%parseother_{<target.name>}_{cmi_user_meta_teamName}%"} false ]} ~onTimer:20
  - message{m="DEBUG - ME <caster.var.team> YOU <target.var.team>"} @PIR{r=8} ~onTimer:20
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking