Hey there once again ya'll, today, we have us a new problem. This time, it's with broadswords though! SO... This is the problem : (See attachment : altprob.png) The problem is that the sword (when using altAbility spinslash) is nowhere near the character's hands ... I have attempted to fix this using the following code : (see near end - altabilitytype,etc) Code: { "itemName": "aviantier1broadswordbasic", "price": 150, "maxStack": 1, "rarity": "Common", "description": "A broken sword. Looks like it fell from a great height.", "shortdescription": "A broken sword", "tooltipKind": "sword", "category": "broadsword", "twoHanded": true, "itemTags": ["weapon", "melee", "broadsword"], "level": 1, "inventoryIcon": "broadswordicon1.png", "animation": "/items/active/weapons/melee/broadsword/broadsword.animation", "animationParts": { "blade": "aviantier1broadsword.png", "handle": "" }, "scripts" : ["/items/active/weapons/melee/meleeweapon.lua"], "elementalType": "physical", "aimOffset": 0.0, "primaryAbilityType" : "broadswordcombo", "primaryAbility" : { "scripts" : ["/items/active/weapons/melee/meleeslash.lua"], "class" : "MeleeSlash", "fireTime" : 0.4, "baseDps" : 15, "damageConfig" : { "damageSourceKind" : "broadsword", "knockback" : 12 }, "stances" : { "idle" : { "armRotation" : -50, "weaponRotation" : -10, "weaponOffset" : [0.5, 0.0], "twoHanded" : true, "allowFlip" : true, "allowRotate" : true }, "windup" : { "duration" : 0.05, "armRotation" : -20, "weaponRotation" : -20, "weaponOffset" : [0.5, 0.25], "twoHanded" : true, "allowFlip" : true, "allowRotate" : false }, "preslash" : { "duration" : 0.025, "armRotation" : 55, "weaponRotation" : -45, "twoHanded" : true, "allowRotate" : false, "allowFlip" : false }, "fire" : { "duration" : 0.2, "armRotation" : -90, "weaponRotation" : 40, "weaponOffset" : [0.5, 0.25], "twoHanded" : true, "allowFlip" : true, "allowRotate" : false } } }, "altAbilityType" : "spinslash", "altAbility" : { "fire" : { "armRotation" : -90, "weaponRotation" : 40, "weaponOffset" : [15.5, 15.25], "twoHanded" : true, "allowFlip" : true, "allowRotate" : false } }, "builder" : "/items/buildscripts/buildunrandweapon.lua", "critChance": 2, "critBonus": 6 } However, in-game once again I'm having the problem that changing the offsets does nothing. It all seems to look right to me, but, could be wrong, and when I check the melee slash.lua, which I'm assuming controls this stuff, it says it's for primary ability, so not sure if it works for alt ability? The primary ability however is perfectly aligned, and works well, so it's a bit confusing. I've been looking for a reference, but none of them I've found seem to edit the alt ability's position. So, I guess what it comes down to is, can I edit the altability position, and if so, how? Thanks in advance.
I FIGURED IT OUT... Was mostly a dumb mistake on my part, here is fixed code (in case it'll help anyone else) : Code: { "itemName": "aviantier1broadswordbasic", "price": 150, "maxStack": 1, "rarity": "Common", "description": "A broken sword. Looks like it fell from a great height.", "shortdescription": "A broken sword", "tooltipKind": "sword", "category": "broadsword", "twoHanded": true, "itemTags": ["weapon", "melee", "broadsword"], "level": 1, "inventoryIcon": "broadswordicon1.png", "animation": "/items/active/weapons/melee/broadsword/broadsword.animation", "animationParts": { "blade": "aviantier1broadsword.png", "handle": "" }, "scripts": ["/items/active/weapons/melee/meleeweapon.lua"], "elementalType": "physical", "aimOffset": 0.0, "primaryAbilityType": "broadswordcombo", "primaryAbility": { "scripts": ["/items/active/weapons/melee/meleeslash.lua"], "class": "MeleeSlash", "fireTime": 0.4, "baseDps": 15, "damageConfig": { "damageSourceKind": "broadsword", "knockback": 12 }, "stances": { "idle": { "armRotation": -50, "weaponRotation": -10, "weaponOffset": [0.5, 0.0], "twoHanded": true, "allowFlip": true, "allowRotate": true }, "windup": { "duration": 0.05, "armRotation": -20, "weaponRotation": -20, "weaponOffset": [0.5, 0.25], "twoHanded": true, "allowFlip": true, "allowRotate": false }, "preslash": { "duration": 0.025, "armRotation": 55, "weaponRotation": -45, "twoHanded": true, "allowRotate": false, "allowFlip": false }, "fire": { "duration": 0.2, "armRotation": -90, "weaponRotation": 40, "weaponOffset": [0.5, 0.25], "twoHanded": true, "allowFlip": true, "allowRotate": false } } }, "altAbilityType": "risingslash", "altAbility": { "damageConfig": { "damageSourceKind": "broadsword", "knockback": 25, "knockbackMode": "facing", "timeoutGroup": "primary" }, "stances": { "idle": { "armRotation": -90, "weaponRotation": -10, "weaponOffset": [0.8, 0.35], "allowRotate": false, "allowFlip": true }, "windup": { "duration": 0.333, "armRotation": 90, "weaponRotation": -90, "weaponOffset": [0.8, 0.35], "twoHanded": true, "allowRotate": false, "allowFlip": true }, "fire": { "duration": 0.5, "armRotation": -45, "weaponRotation": -55, "weaponOffset": [0.8, 0.35], "twoHanded": true, "allowRotate": false, "allowFlip": false } } }, "builder": "/items/buildscripts/buildunrandweapon.lua", "critChance": 2, "critBonus": 6 } Apparently, if you can't rightly have 3 brackets, the third having a comma, at the end of a primary / alt ability block, then you have a problem.
Always remember syntax, or nothing works. (learning the hard way, I'm a software-engineering student)