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 140
    • Issues 140
    • 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
  • #971

Closed
Open
Created Oct 29, 2022 by Taner@Taner

New chance condition is reversed

Hello. New chance condition is reverse. 0.0 mean %100, 1 mean %0 chance. Example below is never work because it is set to 1. If i set 0.0 it is always running. Build 4301

############# MOB #############

chance_test_mob:
  Type: SKELETON
  Health: 1000
  Damage: 1
  Faction: test
  AIGoalSelectors:
  - clear
  - meleeattack
  AITargetSelectors:
  - clear
  - players
  Options:
    PreventSunburn: true
    Silent: true
    Despawn: true
    FollowRange: 20
    MovementSpeed: 0.001
    PreventOtherDrops: true
    PreventItemPickup: true
    KnockbackResistance: 1.0
    PreventMobKillDrops: true
    NoDamageTicks: 1
  Skills:
  - skill{s=chance_test_mob_skill} @self ~onSpawn

############# SKILL #############

chance_test_mob_skill:
  Conditions:
  - chance{chance=1}
  Skills:
  - message{m="chance is working"} @PlayersInRadius{r=30}


############# DEBUG #############

[22:12:33 INFO]: [MythicMobs] ~----------- Attempting to Register CustomMechanic: MODEL
[22:12:33 INFO]: [MythicMobs] [i] Loaded Custom Mechanic MODEL
[22:12:33 INFO]: [MythicMobs] ~----------- Attempting to Register CustomMechanic: MODEL
[22:12:33 INFO]: [MythicMobs] [i] Loaded Custom Mechanic MODEL
[22:12:33 INFO]: [MythicMobs] ~----------- Attempting to Register CustomMechanic: MODEL
[22:12:33 INFO]: [MythicMobs] [i] Loaded Custom Mechanic MODEL
[22:12:33 INFO]: [MythicMobs] ~----------- Attempting to Register CustomMechanic: MODEL
[22:12:33 INFO]: [MythicMobs] [i] Loaded Custom Mechanic MODEL
[22:12:33 INFO]: [MythicMobs] ~----------- Attempting to Register CustomMechanic: MODEL
[22:12:33 INFO]: [MythicMobs] [i] Loaded Custom Mechanic MODEL
[22:12:33 INFO]: [MythicMobs] ~----------- Attempting to Register CustomMechanic: MODEL
[22:12:33 INFO]: [MythicMobs] [i] Loaded Custom Mechanic MODEL
[22:12:33 INFO]: [MythicMobs] [i] Attempting to Register CustomDrop: mmoitems
[22:12:33 INFO]: [MythicMobs] [i] All active mobs have been saved!
[22:12:33 INFO]: [MythicMobs] ✓Saving Finished
[22:13:21 INFO]: [MythicMobs] [e] Detected a Mythic Egg usage for chance_test_mob
[22:13:22 INFO]: [MythicMobs] [e] CreatureSpawnEvent fired
[22:13:22 INFO]: [MythicMobs] [i] Calling MythicMobSpawnEvent for chance_test_mob (level: 1.0)
[22:13:22 INFO]: [MythicMobs] #- Skill Trigger SkillTrigger[name=SPAWN, aliases=[]] fired for ActiveMob null (uuid: 2871cd23-f091-40e0-98f5-1290799191bc)
[22:13:22 INFO]: [MythicMobs] +--- Running Mechanics for ActiveMob chance_test_mob (uuid: 2871cd23-f091-40e0-98f5-1290799191bc)
[22:13:22 INFO]: [MythicMobs] +--- + Running Mechanics for ActiveMob {0} (uuid: 2871cd23-f091-40e0-98f5-1290799191bc)
[22:13:22 INFO]: [MythicMobs] +--- + Evaluating SkillMechanic null
[22:13:22 INFO]: [MythicMobs] |----- ? Checking SkillTrigger SkillTrigger[name=SPAWN, aliases=[]] == SkillTrigger[name=SPAWN, aliases=[]]
[22:13:22 INFO]: [MythicMobs] |----- ? Performing Health Check
[22:13:22 INFO]: [MythicMobs] |----- + SkillMechanic usable!
[22:13:22 INFO]: [MythicMobs] [i] + Mythic Mob chance_test_mob was spawned from an egg.
[22:13:22 INFO]: [MythicMobs] |----- Executing SkillMechanic with power 1 (line: null)
[22:13:22 INFO]: [MythicMobs] |------- : EntityTargeter found 1 targets
[22:13:22 INFO]: [MythicMobs] +--- + Applying entity target filters
[22:13:22 INFO]: [MythicMobs] |----- Returning 1 targets
[22:13:22 INFO]: [MythicMobs] |------- : SkillMechanic is a META mechanic. Executing...
[22:13:22 INFO]: [MythicMobs] |--------? ? Condition outcome false action REQUIRED
[22:13:22 INFO]: [MythicMobs] |----- ! Skill not usable: Conditions failed.
[22:13:22 INFO]: [MythicMobs] ~----------- MetaSkill chance_test_mob_skill is currently unusable
[22:13:22 INFO]: [MythicMobs] +--- Generating LootBag
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking