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 160
    • Issues 160
    • 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
  • modifyscore

modifyscore · Changes

Page history
reverted dante authored Oct 23, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 17 additions and 23 deletions
+17 -23
  • skills/mechanics/modifyscore.md skills/mechanics/modifyscore.md +17 -23
  • No files found.
skills/mechanics/modifyscore.md
View page @ d35abee8
===================== ## Description
*Added in version 2.3*
Modifies the scoreboard-objective value of a fake player name. Modifies the scoreboard-objective value of a fake player name.
Can also be used to modify a specific players score. Can also be used to modify a specific players score.
A list of possible operations for the action-syntax: A list of possible operations for the action-syntax:
- SET - `SET`
- ADD - `ADD`
- SUBTRACT - `SUBTRACT`
- MULTIPLY - `MULTIPLY`
- DIVIDE - `DIVIDE`
- [1] MOD - `MOD` [^mod]
Attributes
----------
| Attribute | Aliases | Description | Default | ## Attributes
|-------------|---------|-----------------------------------------------------------------------------------------------------------------------------------|---------| | Attribute | Aliases | Description | Default |
| objective | obj, o | Specifies the scoreboard objective to be changed. If the objective doesn't exist it will automatically be created by the mechanic | | |-----------|-----------|----------------------------------------------------------------------|---------|
| action | a | The operation to perform | ADD | | objective | obj, o | Specifies the scoreboard objective to be changed. If the objective doesn't exist it will automatically be created by the mechanic | |
| value | v | The value to perform the operation with | 0 | | action | a | The operation to perform | ADD |
| name, entry | n, e | The name of the player/fake player | dummy | | value | v | The value to perform the operation with | 0 |
| name, entry | n, e | The name of the player/fake player | dummy |
Examples
----
## Examples
This example will add one to the score of a player This example will add one to the score of a player
named "Bob" for the objective "TestScore", even if that player doesn't named "Bob" for the objective "TestScore", even if that player doesn't
exist on the server. exist on the server.
It will create the objective if it does not currently exist. It will create the objective if it does not currently exist.
```yaml ```yaml
Skills: Skills:
- modifyscore{o=TestScore;e=Bob;a=add;v=1} ~onInteract - modifyscore{o=TestScore;e=Bob;a=add;v=1} ~onInteract
``` ```
![](https://i.imgur.com/0HKvAUM.png) ![](https://i.imgur.com/0HKvAUM.png)
[1] shorthand for "Modular Division" [^mod]: shorthand for "Modular Division"
\ No newline at end of file \ 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
Packs
Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Examples
Useful Tips