{"base":{"aimPos":"CENTER","args":[{"defaultValue":"axoPos","info":"Define the base name of the position entities (without the numbers!); undefined posName will make the enemy freely evade","name":"posName","type":"String"},{"info":"If defined, set a strict offset for navigating to the position entities to prevent overlapping enemies; leave 'undefined' to use the relative distance of the starting pos to the next valid point","name":"posOffsetXY","optional":true,"type":"Vector2"}],"defaultState":"COMBAT","egg":"small","figure":"FIG:enemy.swamp-area.axolotl#default","hp":1.55,"hudPos":"NODE_HUD","initAction":"init","skewFactor":3,"freqBase":1,"freqGrowth":0.8,"freqWeight":1,"dieAction":"onKill","walkAnims":{"default":{"damage":"dmg01","damageRight":"dmg02","die":"death","idle":"idle"},"weak":{"die":"death","dmgFall":"laying","dmgFly":"laying","idle":"death","postDmgFall":"laying"}},"config":{"actorDust":"ActorM","collType":"ACTOR","groundConnect":"GLUED","hitSound":"Organic","hitStable":"MEDIUM","jumpingEnabled":false,"maxSpeed":15,"walkAnim":"default","weight":-1}},"trackers":{"hit":{},"shields":{"default":{"addOnInit":true,"altShields":[],"dmgFactor":1,"elementResist":[0.65,1.25,0.65,0.65],"fx":"aetherSemi","hitStable":"MEDIUM","triggerFactor":1}},"time":{"move":{"altTrackers":[],"duration":4,"resetRandom":0.1}}},"states":{"IDLE":{"choices":[{"preSetState":"COMBAT","req":[{"type":"IS_AGGRO"}]}],"reactions":["ReflectHit"],"config":{"walkAnim":"default"}},"COMBAT":{"choices":[{"action":"dizzy","req":[{"type":"IS_MODE_ACTIVE","mode":"dizzy"}],"_skip":false},{"action":"recoverDizzy","preSetState":"IDLE","req":[{"type":"IS_AGGRO","not":true}]},{"action":"runAway","req":[{"type":"TARGET_REACHABLE","distance":6}],"_skip":false},{"action":"runAway","req":[{"type":"TARGET_REACHABLE","distance":19,"not":true}]},{"action":"atkUpShoot","frequency":"SOMETIMES","ignore":"STUN"},{"action":"atkStraightShoot","frequency":"NORMAL","ignore":"STUN"},{"action":"idleCombat"}],"reactions":["ReflectHit","Flee"],"config":{"walkAnim":"default"}}},"actions":{"idle":[{"type":"WAIT","time":0.3}],"idleCombat":[{"type":"SET_FACE_STYLE","facingType":"TARGET"},{"type":"WAIT","time":0.3}],"runAway":[{"type":"DISABLE_REACTION","reaction":"Flee"},{"type":"SET_HIT_STABLE","hitStable":"MASSIVE"},{"type":"SHOW_ANIMATION","animation":"hide"},{"type":"WAIT","time":0.15},{"type":"SET_ENEMY_MODE","active":true,"mode":"underground"},{"type":"SET_COLL","collType":"DASHING"},{"type":"GROUP","_skip":true,"name":"temporaryTest","_br":{"then":[{"type":"SET_VAR_ENTITY_POI","poiTargets":{"conditions":[],"destructType":"DES:test.test","type":"DESTRUCT_ENTITIES"},"position":0,"varName":"ent.vars.testEnt"},{"type":"NOTIFY_ENTITY","entity":{"var":"ent.vars.testEnt"},"hint":"testNotif"}]}},{"type":"SPAWN_FX","duration":-1,"effect":"FX:generic.trail#axolotlDigging1","group":"ground","target":{"ent":"self","align":"Z_BASE","rel":true}},{"type":"WAIT","time":0.2},{"type":"SPAWN_FX","duration":-1,"effect":"FX:generic.fade#hideInstant","group":"hide","target":{"ent":"self"}},{"type":"ENABLE_REACTION","reaction":"HitGround"},{"type":"VAR_NUMBER","changeType":"set","value":0,"varName":"ent.vars.fleeCount"},{"type":"SET_SPEED","relative":2},{"type":"IF","condition":"$ent.vars.spawn.posName","_br":{"then":[{"type":"LABEL","name":"a"},{"type":"SET_VAR_ENTITY_POI","checkPath":true,"closestTo":{"ent":"player"},"distance":64,"fromLatest":true,"playerDist":20,"poiTargets":{"acceptHidden":true,"conditions":[{"type":"POI_IS_CLOSE","_skip":true,"amount":3,"distance":7,"not":true,"poiFilter":{"conditions":[],"enemyTypes":"FOE:swamp-area.axolotl","entityType":"ENEMIES_ONLY","self":"IGNORE","type":"ACTIVE_COMBATANTS"},"recursive":true}],"ignoreSelf":true,"namePart":{"var":"ent.vars.spawn.posName"},"type":"NAMED_ENTITIES"},"position":0,"varName":"ent.vars.moveEnt"},{"type":"HIT_CIRCLE","_skip":true,"attackInfo":{"damageFactor":0.3,"element":"NEUTRAL","hitType":"SLASH","impact":"MEDIUM"},"duration":-1,"expandSpline":"LINEAR","minRadius":0,"multiHit":0.15,"radius":0.7,"target":{"ent":"self"}},{"type":"IF","condition":"$ent.vars.moveEnt","_br":{"then":[{"type":"VAR_VEC3_FROM_POS","dirAdjust":{"direction":{"var":"ent.vars.posOffsetXY"}},"position":{"ent":"var","key":"ent.vars.moveEnt"},"varName":"ent.vars.movePos"},{"type":"NAV_TO","target":{"var":"ent.vars.movePos"}},{"type":"COMBAT_IF","condition":[{"type":"TARGET_REACHABLE","distance":6},{"type":"VAR_CONDITION","condition":"$ent.vars.fleeCount < 5"}],"_br":{"then":[{"type":"VAR_NUMBER","changeType":"add","value":1,"varName":"ent.vars.fleeCount"},{"type":"GOTO_LABEL","name":"a"}]}}]}}]}},{"type":"IF","condition":"!$ent.vars.movePos","_br":{"then":[{"type":"CONSOLE_LOG","logColor":"RED","text":"Axolotl.runAway: No posName-arg or nearby movePos found, evading freely!"},{"type":"NAV_AWAY_FROM","distance":12,"maxTime":2.4,"target":{"ent":"target"}}]}},{"type":"VAR_VEC3","changeType":"set","varName":"ent.vars.movePos"},{"type":"STOP_COMBAT_ACTS","_skip":true,"onlyRepeating":true},{"type":"FACE_TO_TARGET","instant":true},{"type":"STOP_XY"},{"type":"CLEAR_FX","group":"ground"},{"type":"CLEAR_FX","group":"hide"},{"type":"SPAWN_FX","_skip":true,"duration":0.1,"effect":"FX:generic.fade#showInstant","target":{"ent":"self"}},{"type":"PUSH_PULL_FORCE","duration":0.1,"maxFaceAngle":0,"maxSidewayDist":0,"maxWeight":100,"ppStrength":22,"radius":2,"radiusFade":1,"radiusMin":0,"target":{"ent":"self","align":"Z_BASE"},"timeFadeIn":0,"timeFadeOut":0,"weightFade":60,"zRange":0.5},{"type":"SHOW_ANIMATION","animation":"appear"},{"type":"WAIT","time":0.1},{"type":"SET_ENEMY_MODE","active":false,"mode":"underground"},{"type":"DISABLE_REACTION","reaction":"HitGround"},{"type":"RESET_COLL"},{"type":"SET_HIT_STABLE","hitStable":"MEDIUM"},{"type":"WAIT_UNTIL_ANIM_DONE"},{"type":"WAIT","time":0.2}],"atkUpShoot":[{"type":"SET_HIT_STABLE","hitStable":"MASSIVE"},{"type":"SET_PHASE","phase":"PRE_ATTACK","time":0.65},{"type":"TARGET_FOLLOW_JUMP","adjustSpeed":11,"target":{"ent":"target","off":[0,0,1.5]}},{"type":"DISABLE_REACTION","reaction":"Flee"},{"type":"SET_DAMAGE_FACTOR","factor":1.5},{"type":"SHOW_ANIMATION","animation":"strongCharge"},{"type":"SPAWN_FX","effect":"FX:combat.telegraphs#redEye","target":{"ent":"self","align":"HOOK_1"}},{"type":"START_AIM_FX","aimFx":"ReflectProjectile","selfPos":{"align":"BOTTOM","off":[0,0,2.25]}},{"type":"SPAWN_FX","duration":{"var":"ent.phaseTime"},"effect":"FX:generic.charge#axoChargeAeth1","part":"PART_2","target":{"ent":"self","align":"HOOK_1"}},{"type":"WAIT","time":{"var":"ent.phaseTime"}},{"type":"WAIT","time":0.15},{"type":"SPAWN_FX","duration":-1,"effect":"FX:combat.weak#blink","group":"preWeak","target":{"ent":"self"}},{"type":"SET_PHASE","phase":"ATTACK"},{"type":"SPAWN_FX","effect":"FX:generic.discharge#aetherBulbM1","target":{"ent":"self","align":"HOOK_1"}},{"type":"SET_DMG_CEILING","maxTotalDmg":2.2},{"type":"SHOW_ANIMATION","animation":"atkShootUp"},{"type":"WAIT_UNTIL_HOOK_READY","hook":"HOOK_1"},{"type":"END_AIM_FX","immediately":true},{"type":"TARGET_FOLLOW_JUMP","adjustSpeed":11,"target":{"ent":"target"}},{"type":"SHOOT_PROXY","aimType":"AUTO","pos":{"ent":"self","align":"NODE_HEAD"},"proxy":"upShotLow1"},{"type":"WAIT","time":0.1},{"type":"WAIT","time":0.1},{"type":"SET_PHASE","phase":"POST_ATTACK"},{"type":"ENABLE_REACTION","reaction":"Flee"},{"type":"WAIT","time":0.7},{"type":"IF","_skip":true,"condition":"$game.weltmeister","_br":{"then":[{"type":"WAIT","time":1}]}}],"atkStraightShoot":[{"type":"SET_FACE_STYLE","facingType":"TARGET"},{"type":"SET_HIT_STABLE","hitStable":"HEAVY"},{"type":"SET_PHASE","phase":"PRE_ATTACK","time":0.55},{"type":"TARGET_FOLLOW_JUMP","adjustSpeed":11,"target":{"ent":"target","align":"CENTER","off":[0,0,0.6875]}},{"type":"SET_DAMAGE_FACTOR","factor":1.5},{"type":"SHOW_ANIMATION","animation":"basicCharge"},{"type":"SPAWN_FX","effect":"FX:combat.telegraphs#redEye","target":{"ent":"self","align":"HOOK_1"}},{"type":"SPAWN_FX","duration":{"var":"ent.phaseTime"},"effect":"FX:generic.charge#frogCharge","part":"PART_2","target":{"ent":"self","align":"HOOK_1"}},{"type":"WAIT","time":{"var":"ent.phaseTime"}},{"type":"SPAWN_FX","duration":-1,"effect":"FX:combat.weak#blink","group":"preWeak","target":{"ent":"self"}},{"type":"DISABLE_REACTION","reaction":"Flee"},{"type":"SET_PHASE","phase":"ATTACK"},{"type":"WAIT","time":0.05},{"type":"SPAWN_FX","effect":"FX:generic.shoot#aetherSpikes1","target":{"ent":"self","align":"HOOK_1"}},{"type":"SET_DMG_CEILING","maxTotalDmg":1.5},{"type":"SHOW_ANIMATION","animation":"atkShootForward"},{"type":"WAIT_UNTIL_HOOK_READY","hook":"HOOK_1"},{"type":"SHOOT_PROXY","aimType":"AUTO","pos":{"ent":"self","align":"HOOK_1"},"proxy":"frontalShot1"},{"type":"COMBAT_IF","_skip":true,"condition":[{"type":"IS_ENEMY_ALT","alt":"axolol"}],"_br":{"then":[{"type":"WAIT","time":0.15},{"type":"ENABLE_REACTION","reaction":"Flee"},{"type":"SHOW_ANIMATION","animation":"basicCharge"},{"type":"WAIT","time":0.4},{"type":"DISABLE_REACTION","reaction":"Flee"},{"type":"SHOW_ANIMATION","animation":"atkShootForward"},{"type":"SPAWN_FX","effect":"FX:generic.shoot#aetherSpikes1","target":{"ent":"self","align":"HOOK_1"}},{"type":"SHOOT_PROXY","aimType":"AUTO","pos":{"ent":"self","align":"HOOK_1"},"proxy":"frontalShot1"}]}},{"type":"WAIT","time":0.2},{"type":"SET_PHASE","phase":"POST_ATTACK"},{"type":"ENABLE_REACTION","reaction":"Flee"},{"type":"WAIT","time":0.4},{"type":"IF","_skip":true,"condition":"$game.weltmeister","_br":{"then":[{"type":"WAIT","time":1}]}}],"reflectHit":[{"type":"SET_ENEMY_MODE","active":3,"mode":"dizzy"},{"type":"SPAWN_FX","detached":true,"effect":"FX:combat.weak#blink","group":"weak","target":{"ent":"self"}},{"type":"CONSOLE_LOG","_skip":true,"text":"BREAK"}],"recoverDizzy":[{"type":"SET_ENEMY_MODE","active":false,"mode":"dizzy"},{"type":"CLEAR_FX","group":"weak"}],"dizzy":[{"type":"SHOW_ANIMATION","animation":"dmg01","interpolate":0.3,"noForce":true},{"type":"WAIT_UNTIL_COMBAT","condition":[{"type":"IS_MODE_ACTIVE","mode":"dizzy","not":true}]},{"type":"CLEAR_ANIMATION"},{"type":"CLEAR_FX","group":"weak"},{"type":"SET_FACE_STYLE","facingType":"TARGET"},{"type":"WAIT","time":0.1}],"init":[{"type":"VAR_VEC3_FROM_POS","position":{"ent":"self","align":"Z_BASE"},"varName":"ent.vars.startPos"},{"type":"SET_VAR_ENTITY_POI","_skip":true,"checkPath":true,"closestTo":{"ent":"self"},"distance":48,"multiVar":-1,"poiTargets":{"acceptHidden":true,"conditions":[],"ignoreSelf":true,"namePart":{"var":"ent.vars.spawn.posName"},"type":"NAMED_ENTITIES"},"position":0,"saveCountVar":"ent.vars.movePosCount","varName":"ent.vars.movePos"},{"type":"IF","condition":"$ent.vars.spawn.posOffsetXY","else":true,"_br":{"then":[{"type":"VAR_VEC2","changeType":"set","value":{"var":"ent.vars.spawn.posOffsetXY"},"varName":"ent.vars.posOffsetXY"}],"else":[{"type":"SET_VAR_ENTITY_POI","closestTo":{"ent":"self"},"distance":48,"poiTargets":{"acceptHidden":true,"conditions":[],"ignoreSelf":true,"namePart":{"var":"ent.vars.spawn.posName"},"type":"NAMED_ENTITIES"},"position":0,"varName":"ent.vars.movePos"},{"type":"VAR_VEC3_FROM_POS","position":{"ent":"var","key":"ent.vars.movePos"},"varName":"ent.vars.movePos"},{"type":"VAR_VEC2","changeType":"set","value":{"var":"ent.vars.startPos"},"varName":"ent.vars.posOffsetXY"},{"type":"VAR_VEC2","changeType":"sub","value":{"var":"ent.vars.movePos"},"varName":"ent.vars.posOffsetXY"},{"type":"CONSOLE_LOG","_skip":true,"logColor":"ORANGE","text":"StartPos: {v:ent.vars.startPos}\nRefPos {v:ent.vars.movePos}\n{v:ent.vars.countTest}\nMovePosOffset {v:ent.vars.posOffsetXY}"}]}}],"runCloser":[{"type":"SHOW_ANIMATION","animation":"hide","wait":true},{"type":"SET_HIT_STABLE","hitStable":"MASSIVE"},{"type":"SET_ENEMY_MODE","active":true,"mode":"underground"},{"type":"SET_COLL","collType":"DASHING"},{"type":"ENABLE_REACTION","reaction":"HitGround"},{"type":"SPAWN_FX","duration":-1,"effect":"FX:generic.fade#hideInstant","group":"hide","target":{"ent":"self"}},{"type":"SPAWN_FX","duration":-1,"effect":"FX:generic.charge#redGroundS1","group":"ground","target":{"ent":"self","align":"Z_BASE","rel":true}},{"type":"SPAWN_FX","_skip":true,"effect":"FX:generic.homing#groundRootFollow2","group":"move","target":{"ent":"self"},"target2":{"ent":"self"},"wait":true,"waitSkip":0.1},{"type":"SET_SPEED","relative":1},{"type":"NAV_TO","distance":9,"target":{"ent":"target"}},{"type":"CLEAR_FX","group":"ground"},{"type":"CLEAR_FX","group":"hide"},{"type":"SPAWN_FX","duration":0.1,"effect":"FX:generic.fade#showInstant","target":{"ent":"self"}},{"type":"DISABLE_REACTION","reaction":"HitGround"},{"type":"SET_ENEMY_MODE","active":false,"mode":"underground"},{"type":"RESET_COLL"},{"type":"SHOW_ANIMATION","animation":"appear","wait":true},{"type":"FACE_TO_TARGET"},{"type":"SET_HIT_STABLE","hitStable":"MEDIUM"},{"type":"WAIT","time":0.2}],"onKill":[{"type":"ROTATE_FACE","random":1,"time":0,"turn":360}]},"proxies":{"frontalShot1":{"attackInfo":{"damageFactor":0.8,"element":"AETHER","fly":"HEAVY","hitType":"PIERCE","impact":"HEAVY"},"figure":"FIG:weapon.projectiles#pierce","flyStraight":{"adjustAngle":80,"loseAdjust":{"distance":2,"maxAngle":10,"timeForceLose":1.6},"start":{"adjustAngle":30,"speed":19,"transTime":0.15},"zVelAdjust":2},"fxTrail":"FX:generic.projectile#fishSpikeTrail","fxWall":"FX:generic.projectile#bubbleBoom","hitType":"ONCE","maxTime":2.4,"speed":13,"zGravityFactor":0,"type":"Projectile"},"upShotLow1":{"attackInfo":{"damageFactor":0,"element":"AETHER","fly":"NONE","hitType":"BLUNT","impact":"NONE","triggerFactor":0},"connect":"NONE","figure":"FIG:weapon.projectiles#bubble-1","flyUp":{"adjustSpeed":5,"aimFx":"Circle4","maxRange":18,"minTime":0.6,"stopAdjustTime":0.2},"fxTrail":"FX:generic.projectile#atherBombTrail1","hitType":"ONLY_PROXY_ON_GROUND","maxTime":3,"reflect":true,"speed":40,"subProxy":"axoBoom","zGravityFactor":3.6,"zGrvOnRefl":2,"type":"Projectile"},"axoBoom":{"action":[{"type":"COMBAT_IF","condition":[{"type":"ON_GROUND","not":true,"useTerrainZ":true,"zPosTolerance":0.5}],"_br":{"then":[{"type":"SET_ENTITY_POSITION","target":{"ent":"self","off":[0,0,-0.5]}}]}},{"type":"HIT_CIRCLE","attackInfo":{"damageFactor":1.5,"element":"AETHER","fly":"MASSIVE","hitType":"BLUNT","impact":"MASSIVE"},"duration":0.1,"expandSpline":"LINEAR","minRadius":0,"multiHit":0,"radius":1.5,"radiusExpand":0.6,"target":{"ent":"self"},"zRange":1.5},{"type":"SHOOT_PROXY","immediateShot":true,"pos":{"ent":"self"},"proxy":{"global":"aetherRemnantS"}},{"type":"SPAWN_FX","detached":true,"effect":"FX:generic.boom#aetherSmallMid1","target":{"ent":"self"}},{"type":"WAIT","time":0.15}],"config":{"collType":"NONE","walkAnim":"default","weight":-1},"connect":"NONE","defaultGroup":"axoBoom","proxyLife":{"aimRange":16,"lifeFactor":0.1,"spGainFactor":0.25},"walkAnims":{},"type":"Generic"},"upDefault":{"attackInfo":{"damageFactor":0,"element":"AETHER","fly":"NONE","hitType":"BLUNT","impact":"NONE","triggerFactor":0},"figure":"FIG:weapon.projectiles#blob","flyUp":{"adjustSpeed":2,"aimFx":"Circle3","minTime":0.9,"stopAdjustTime":0.2},"fxTrail":"FX:generic.projectile#redBombTrail","hitType":"ONLY_PROXY_ON_KILL","maxTime":2,"reflect":true,"speed":13,"subProxy":"axoBoom","zGravityFactor":2,"zGrvOnRefl":2,"type":"Projectile"},"clusterAdd":{"action":[{"type":"CONSOLE_LOG","text":"Idea for special boss that has a lot of subs"}],"config":{"walkAnim":"default","weight":-1},"proxyLife":{"aimRange":16,"lifeFactor":0.1,"spGainFactor":0.25},"walkAnims":{},"type":"Generic"},"undergroundAttack":{"action":[{"type":"CONSOLE_LOG","text":"Idea for special boss that has a lot of subs"}],"config":{"walkAnim":"default","weight":-1},"proxyLife":{"aimRange":16,"lifeFactor":0.1,"neededHints":["HIT_GROUND"],"spGainFactor":0.25,"hasRealLife":true},"walkAnims":{},"type":"Generic"}},"reactions":{"HitGround":{"damageFactor":3,"executeAfterBreak":true,"fly":"MASSIVE","hitReq":[{"type":"HAS_HINT","hints":["HIT_GROUND"]}],"req":[{"type":"IS_MODE_ACTIVE","mode":"underground"}],"triggerFactor":1,"type":"Hit"},"ReflectHit":{"damageFactor":5,"preAction":"reflectHit","req":[{"type":"HIT_BY_OVERRIDE","proxyGroup":"axoBoom"}],"triggerFactor":1,"type":"Hit"},"Flee":{"action":"runAway","req":[{"type":"TARGET_REACHABLE","distance":4.5},{"type":"IS_MODE_ACTIVE","mode":"underground","not":true},{"type":"IS_MODE_ACTIVE","mode":"dizzy","not":true}],"type":"AutoReaction"},"HvyEvade":{"action":"runAway","cooldown":6,"req":[{"type":"IS_ENEMY_ALT","alt":"axolol"}],"type":"Dodge"}},"parts":{},"modes":{"dizzy":{"fx":"FX:combat.weak#triggerWeak","parts":[],"resist":{"global":1.5}},"underground":{"blockAim":true,"parts":[],"resist":{"type":"MULTIPLY"},"temporary":true}},"alts":{"axolol":{},"eliteTeam1":{"hp":6,"lvlAdd":1},"bossAxoCluster":{"hp":22}}}