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