Starbound

Starbound

Elithian Races Mod
Montana 2017 年 7 月 9 日 下午 6:05
Need input on making a modified OP sword
So I love the Commander Zaheed sword, but I find it is too weak, so I wanted to modify it.
I changed some stuff around including abilities and changed the icon and animation file to OP infront of it since I named the sword OPzaheedsword. (Also where do I put the file itself?)

I will post the code of which I entered. Please check if this will work. I also will post a screenshot!
Link to screenshot: http://imgur.com/a/w7eZ0
OPzaheedsword:

{
"itemName" : "OPzaheedsword",
"price" : 777,
"level" : 6,
"maxStack" : 1,
"rarity" : "essential",
"description" : "^orange;A overly modified Droden longsword used by Commander Zaheed.",
"shortdescription" : "^orange;Zaheed's Sword^white;",
"tooltipKind" : "thea-sword-unique",
"category" : "Longsword",
"twoHanded" : true,
"itemTags" : ["weapon","melee","broadsword"],

"inventoryIcon" : "OPzaheedswordicon.png",

"animation" : "OPzaheedsword.animation",
"animationParts" : {
"handle" : "handle.png",
"handleFullbright" : "handlefullbright.png",
"blade" : "blade.png"
},
"animationCustom" : {
"sounds" : {
"fire" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ],
"fire2" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ],
"fire3" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ],
"fire4" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ],
"fire5" : [ "/sfx/melee/laser_weapon_swing1.ogg", "/sfx/melee/laser_weapon_swing2.ogg", "/sfx/melee/laser_weapon_swing3.ogg" ],
"throw" : [ "/sfx/melee/swing_spear.ogg" ]
}
},

"scripts" : ["/items/active/weapons/melee/energymeleeweapon.lua"],

"activeTime" : 3.0,

"elementalType" : "physical",

"primaryAbilityType" : "broadswordcombo",
"primaryAbility" : {
"fireTime" : 0.3,
"baseDps" : 25,

"stepDamageConfig" : [
{
"baseDamageFactor" : 1.0,
"knockback" : 15
},
{
"baseDamageFactor" : 0.35,
"knockback" : 10
},
{
"baseDamageFactor" : 0.35,
"knockback" : 10
},
{
"baseDamageFactor" : 0.35,
"knockback" : 10
},
{
"baseDamageFactor" : 1.0,
"knockback" : 35
}
],

"comboSteps" : 5,

"swooshOffsetRegions" : [
[0.75, 0.0, 4.25, 5.0],
[3.0, -0.5, 6.5, 2.0],
[1.5, -1.0, 5.5, 1.0],
[3.0, -0.5, 6.5, 2.0],
[1.5, -1.0, 5.5, 1.0]
],

"stances" : {
"fire1" : {
"duration" : 0.05
},
"wait1" : {
"duration" : 0.1
},
"fire2" : {
"duration" : 0.1
},
"wait2" : {
"duration" : 0.1
},
"fire3" : {
"duration" : 0.1
},
"wait3" : {
"duration" : 0.2,
"armRotation" : 0,
"weaponRotation" : -90,
"weaponOffset" : [0, 0],
"allowRotate" : false,
"allowFlip" : true,
"twoHanded" : true
},
"windup4" : {
"duration" : 0.15,
"armRotation" : -15,
"weaponRotation" : -60,
"weaponOffset" : [0, 0],
"twoHanded" : true,
"allowFlip" : true,
"allowRotate" : false
},
"fire4" : {
"duration" : 0.2,
"armRotation" : -150,
"weaponRotation" : 55,
"weaponOffset" : [0, 0],
"twoHanded" : true,
"allowFlip" : true,
"allowRotate" : false
},
"wait4" : {
"duration" : 0.1,
"armRotation" : -150,
"weaponRotation" : 55,
"weaponOffset" : [0, 0],
"allowRotate" : false,
"allowFlip" : true,
"twoHanded" : true
},
"windup5" : {
"duration" : 0.15,
"armRotation" : -150,
"weaponRotation" : 55,
"twoHanded" : true,

"allowRotate" : false,
"allowFlip" : true
},
"fire5" : {
"duration" : 0.3,
"armRotation" : 0,
"weaponRotation" : -90,
"twoHanded" : true,

"allowRotate" : false,
"allowFlip" : true
}
}
},

"altAbility" : {
"name" : "Warp Strike",
"scripts" : ["/items/active/weapons/melee/abilities/broadsword/thea-zaheedthrow/thea-zaheedthrow.lua"],
"class" : "TheaZaheedThrow",

"walkWhileFiring" : true,

"fireOffset" : [0.0, 0.0],

"teleportOffset" : [0.0, 0.5],
"teleportTolerance" : 3.0,
"maxTeleportDistance" : 100.0,

"energyPerShot" : 1,

"windupTime" : 0.6,
"cooldownTime" : 0.3,
"maxWaitTime" : 0.65,

"projectileType" : "zaheedsword",
"projectileParameters" : {
"speed" : 75,
"power" : 8
},

"stances" : {
"windup" : {
"armRotation" : 50,
"weaponRotation" : -230,
"allowRotate" : false,
"allowFlip" : true,
"twoHanded" : true
},
"aiming" : {
"armRotation" : 110,
"weaponRotation" : -10,
"allowRotate" : true,
"allowFlip" : true,
"twoHanded" : false
},
"fire" : {
"duration" : 0.3,
"armRotation" : 30,
"weaponRotation" : -320,
"allowRotate" : false,
"allowFlip" : true,
"twoHanded" : false
},
"cooldown" : {
"duration" : 0.25,
"armRotation" : -90,
"weaponRotation" : 0,
"allowRotate" : false,
"allowFlip" : true,
"twoHanded" : false
}
}
},

"builder" : "/items/buildscripts/buildunrandweapon.lua"
}

< >
正在显示第 1 - 4 条,共 4 条留言
Aegonian [THEA]  [开发者] 2017 年 7 月 10 日 上午 2:54 
If you just want a more powerful version of the sword, you can also use commands to spawn in a level 10 version of the sword: /spawnitem zaheedsword 1 '{"level":10}'

I don't see any issues with the JSON you posted here, but be warned that adding in your own variation of the sword through a custom mod may cause issues if you decide to play in multiplayer, since the other person won't have the same mods installed as you do. Where do you have the files stored on your PC? In order for the game to recognize your custom content, the files will have to be in the proper folder, and it should include a metadata file as well. It might be easier to just use the /spawnitem command for all of your changes: even the weapon's name, description, rate of fire etc can be modified through commands without requiring a custom mod.
Montana 2017 年 7 月 10 日 上午 8:33 
oh, I didnt know that about the spawn commands. About the file itself, where would I put it, Since my mod folder for Elithian Races only has a content.pak inside. Would I just put my modified folder inside with Eilithian Folder?
Aegonian [THEA]  [开发者] 2017 年 7 月 11 日 上午 12:37 
No, manually-installed mods go into the 'mods' folder. The location the .pak is in is just for mods downloaded from the Steam Workshop. It's usually located at C:\Program Files (x86)\SteamLibrary\SteamApps\common\Starbound\mods.

Best practice is to create a new folder in your 'mods' folder - name it whatever you like - then place all of the modified files in that folder. I'm not sure if it's absolutely necessary, but I also recommend adding a basic metadata file so the game will recognize your folder as a proper asset source.
Montana 2017 年 7 月 17 日 下午 2:09 
Ok Thanks
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50