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

Closed
Open
Created Apr 10, 2021 by Ghmmy@GhmmyMaintainer

[Bug/Suggestion] Base Damage mechanic not supporting variables

Summary The basedamage{} multiplier doesnt support variables

Steps to reproduce use

  - setvariable{var=caster.RS_DMG_MULTIPLIER;value=100} @self ~onSpawn
  - cancelevent{sync=true} @self ~onAttack
  - basedamage{m="<caster.var.RS_DMG_MULTIPLIER>"} @target ~onAttack

as your skill inside the mob

Current behavior Currently the basedamage would just be 1 as it doesnt understand the variable inside of there. Setting it to a fixed number like m=10 works though. (the message mechanic already returns the valid number, so there is no issue with the variable itself)

Intended correct behavior basedamage{m="<caster.var.RS_DMG_MULTIPLIER>"} should return the variable in there. Except it doesnt return anything

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking