I really have no clue where to go with this. Following the patch guide, I figured that the "Replace" function is what I would need. So, I took the monster's folder (this case, Poptop), and edited the ,monstertype in a mod folder. Using the Po as a reference, I added this line to the Poptop's file under scripts; "/monsters/capturepod.lua". I then made a patch file, but here's the problem; I have absolutely NO clue where to put this patch. Code: [ "op": "replace", "path": "/monsters/unique/poptop", "value": { "monstertype" : "poptop" } ] I'm fairly certain I got the value wrong, but at the same time, I don't even know if I did the code right. I'm no coder, and the tutorial only covers the bare basics with items, so it mostly went over my head (as evident by my mods on the site). What do I do to change this to get it working? EDIT: Forgot to actually post the .monstertype code. Code: { "type" : "poptop", "categories" : [ "poptop" ], "parts" : [ "body" ], "animation" : "poptop.animation", "colors" : "/monsters/colors.config", "dropPools" : [ "basicMonsterTreasure" ], "baseParameters" : { "scripts" : [ "/monsters/capturepod.lua", "/monsters/ground/groundMonster.lua", "/scripts/stateMachine.lua", "/scripts/util.lua", "/scripts/vec2.lua", "/monsters/ground/aggroHopState.lua", "/monsters/ground/approachState.lua", "/monsters/ground/fleeState.lua", "/monsters/ground/captiveState.lua", "/monsters/ground/stunState.lua", "/monsters/unique/poptop/wanderSkipState.lua" ], "blockedSensors" : [ [1.5, -0.8], [1.5, 0.2], [1.5, 0.7] ], "fallSensors" : [ [0.5, -2.5], [0.5, -3.5], [0.5, -4.5], [2.0, -2.5], [2.0, -3.5], [2.0, -4.5] ], "skills" : [ "meleeAttack", "pounceAttack" ], "aggressive" : false, "territoryDistance" : 10.0, "territorialTargetRadius" : 20.0, "minimalTargetRadius" : 6.0, "targetSearchTime" : 0.5, "targetHoldTime" : 10.0, "closeDistance" : 1.5, "wanderTime" : [4.0, 6.0], "wanderMovementTime" : [2.0, 3.0], "jumpTargetDistance" : 6, "jumpTime" : [0.5, 1.0], "metaBoundBox" : [-2.5, -2.5, 2.5, 2.5], "scale" : 1.0, "movementSettings" : { "collisionPoly" : [ [-2.0, -2.25], [2.5, -2.25], [2.0, 0.25], [-1.5, 0.25] ], "mass" : 1.0, "walkSpeed" : 3, "runSpeed" : 8, "jumpSpeed" : 5 }, "knockoutTime" : 1, "knockoutEffect" : "blink", "deathParticles" : "deathPoof", "touchDamage" : { "poly" : [ [-2.0, -2.25], [2.5, -2.25], [2.0, 0.25], [-1.5, 0.25] ], "damage" : 12, "teamType" : "enemy", "damageSourceKind" : "default", "statusEffects" : [ ] }, "statusSettings" : { "statusProperties" : { "targetMaterialKind" : "organic" }, "appliesEnvironmentStatusEffects" : false, "minimumLiquidStatusEffectPercentage" : 0.1, "primaryScriptSources" : [ "/stats/monster_primary.lua" ], "primaryScriptDelta" : 0, "stats" : { "maxHealth" : { "baseValue" : 48 }, "protection" : { "baseValue" : 1.0 }, "healthRegen" : { "baseValue" : 0.0 } }, "resources" : { "health" : { "maxStat" : "maxHealth", "deltaStat" : "healthRegen", "defaultPercentage" : 100 } } }, "projectileSourcePosition" : [0.0, -1.0], "mouthOffset" : [0, 0], "feetOffset" : [0, -22] } }
The capture pod is controlled by including a script in the monster's .monstertype file. You can see that the poptop does not include the capturepod script: Code: "baseParameters" : { "scripts" : [ "/monsters/ground/groundMonster.lua", "/scripts/stateMachine.lua", "/scripts/util.lua", "/scripts/vec2.lua", "/monsters/ground/aggroHopState.lua", "/monsters/ground/approachState.lua", "/monsters/ground/fleeState.lua", "/monsters/ground/stunState.lua", "/monsters/unique/poptop/wanderSkipState.lua" ], But something like the smallbiped does Code: "baseParameters" : { "scripts" : [ "/monsters/capturepod.lua", "/monsters/ground/groundMonster.lua", "/scripts/stateMachine.lua", "/scripts/util.lua", "/scripts/vec2.lua", "/monsters/ground/aggroHopState.lua", "/monsters/ground/approachState.lua", "/monsters/ground/fleeState.lua", "/monsters/ground/captiveState.lua", "/monsters/ground/stunState.lua", "/monsters/ground/socializeState.lua", "/monsters/ground/wanderState.lua", "/monsters/ground/skills/createGroundRangedAttack.lua" ], You need to include the capturepod script to make a monster capturable. I am honestly confused as to how you are currently trying to go about this.
I did add the capturepod.lua script. I said it in my post lol. The problem is, simply doing that did not work. EDIT: Might help if I had posted a full script instead of saying I put so and so line under scripts. Updated the first post to reflect this change.
Like I said, I was confused as to what you were saying in your original post. I will take a look at this later if no one else picks it up, don't have the time to actually fiddle with it at this moment.