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 142
    • Issues 142
    • 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
  • Wiki
    • Skills
    • Mechanics
  • setvariable

setvariable · Changes

Page history
Update setvariable authored Sep 30, 2021 by SharkGirl kunjang's avatar SharkGirl kunjang
Hide whitespace changes
Inline Side-by-side
Showing with 7 additions and 2 deletions
+7 -2
  • skills/mechanics/setvariable.md skills/mechanics/setvariable.md +7 -2
  • No files found.
skills/mechanics/setvariable.md
View page @ 0b513389
......@@ -10,7 +10,7 @@ Attributes
| Attribute | Aliases | Description | Default Value |
|-----------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| variable | var | The name of the variable. Can optionally be prefixed with **scope.** | |
| variable | name, n, var, key, k | The name of the variable. Can optionally be prefixed with **scope.** | |
| value | val | The value to set the variable to. Must be applicable for **type** or the mechanic will fail. Should be surrounded in double-quotes if using spaces. Value can also include placeholders, even from PlaceholderAPI. | |
| scope | s | The [scope](/skills/variables#variable_scopes) of the variable, e.g. where the variable will be located. | SKILL |
| type | t | The [type](/skills/variables#variable_types) of the variable. | INTEGER |
......@@ -64,4 +64,9 @@ Also,other variables can be stored inside a int/float variable.
Skills:
- setvariable{var=caster.VariableA;value="%mmoitems_stat_skill_damage%";type=INTEGER} @self
- setvariable{var=caster.VariableB;value="%<caster.var.VaribaleA> * 2";type=INTEGER} @self
- setvariable{var=caster.VariableC;value="<caster.var.VaribaleA> + <caster.var.VaribaleB>";type=INTEGER} @self
\ No newline at end of file
- setvariable{var=caster.VariableC;value="<caster.var.VaribaleA> + <caster.var.VaribaleB>";type=INTEGER} @self
Extra Information
----------------
- [x] Alias: setvar
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Premium Features
  • Commands and Permissions
  • FAQ / Common Issues
  • Mythic Add-ons
  • Compatible Plugins
  • API Information

Mobs

  • Overview
  • Types
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: ModelEngine

Skills

  • Overview
  • Mechanics
  • Effects
  • Targeters
  • Triggers
  • Conditions
  • Placeholders
  • Variables

Items & Drops

  • Drops and Drop Tables
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers

Spawning

  • Spawners
  • Random Spawns

Tutorials

  • DamageSpells