How to Create a Mythic Mob Skill
Your basic skill syntax is as follows:
Skills:
- mechanic{option=value} @[targeter] ~on[trigger] [health_modifier] [chance]
To create a skill, locate the mechanic you want to use from the skill page of the manual, as each one has their own unique settings.
Plug in any required or optional variables you would like (in this case I'll use the damage mechanic)
- damage{amount=2;ignoreArmor=true;preventknockback=true;preventimmunity=false} @trigger ~onAttack >0 0.33
Then make sure your skill has both an @ Targeter and an ~onTrigger so that it knows who it affects and what causes it to happen.
The way this skill is written is that the mob will "damage" for 2, will ignore armor resistances and not cause knockback, though damage immunities can still apply. This skill will affect @ the person or mob that triggers the spell, which in this case is the person or mob that this mob attacks. This skill will only fire if the mob has greater than (>) 0 health and will happen 33% (0.33) of the time it attacks.
This is the rundown for a basic skill right out of the manual, which can let you do a lot of things. However sometimes you need more fine control over your skills, so in these instances "Meta-Skills" are used.
A Meta-Skill is a collection of skill mechanics that can be bundled with conditions, and is placed within its own config file. The benefit of this is that you can name this group of skills with a unique Mythic Mobs internal skill name and simply reference it, as opposed to writing the skills out each time for each mob.
The way to call a Meta-Skill from a skill file with your mob is by using the - skill ... skill.
- skill{s=ExampleSkill} @self ~onDamaged =30%-50% 0.25
Meta-Skills inherit the targeter and trigger conditions of the skill that calls them, so you dont need to supply @targeters or ~onTriggers to each nested skill.
Below is an example of a Meta-Skill that would be in your Skills file.
#Skill name that can be called by the "skill" mechanic
ExampleSkill:
#List of conditions that are checked before the skill will work
Conditions:
#Only works if the Mob's potion effect "Increase_Damage" (Strength) DOESN'T exist (hence false)
- haspotioneffect{type=INCREASE_DAMAGE} false
#Cooldown in seconds that another skill attempt will not work
Cooldown: 10
#The bundled skills called when this file is run by a mob and the conditions are met
Skills:
- effect:particles{p=angryVillager;a=5;hS=1;vS=1}
- potion{type=INCREASE_DAMAGE;duration=200;level=0}
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/CivEx/comme...