I'm kinda interested (seeing how the code looks) in the .xml file to try and start modding. It looks simple, but I'm wondering how to add new weapons (Melee, Ranged (and with ammo)?
Thank you :>
I'm busy making a makeshift Laser Rifle
I'll post a short tutorial if/when I get it working :) unless someone beats me too it :D less work then haha
Short Tutorial for making your own Ranged weapon
firstly you gotta copy/paste a itemtype to work from, I copied the code from the perferator shotgun and worked from there...
For a description of most of the values look here : (I'll leave out the really really self-explanatory ones or the ones I have no idea what they do but hope they don't really do anything important)
vImageList here you will list the images you're working with and seperate them with commas
vSpriteList here you list images and tell the game where to use them on the hex movement screen. if you're holding the weapon in your left hand 20 will show the CreItmSBS4HeldL.png sprite/image alternatively if in the right hand 21 will show CreItmSBS4HeldR.png
vImageUsage here I'm not really sure what goes on, but its really important to match the image size with the values here, (thanks to Kaaven for spotting that!) If you are like me and use the perferator shotgun images to create new images then you would use 0,0,0,0,1,1. Otherwise be sure to check the value of the weapon you're "cloning" for reference.
aCapacities is the size of your "ammo container" is, my rifle uses a laptop battery for ammo, which is 2x2 blocks
vEquipSlots is another important one, and is directly affected by vImageUsage, since I went with 0,0,0,0,1,1 I have to use 21=1=1,20=1=1, if I had 0,0,0,0,2,2, I would have to use 21=2=2,20=2=2
vProperties are just the properties of your object, if it's waterproof, flammable, large, etc etc
aContentIDs refers to your container type of your "ammo container". Since I use laptop battery I have to use it's containertype ID here which is 25.
nTreasureID here refers to a treasuretable ID which has the ammo of weapon
And finally aAttackModes refers to attack modes you can toggle between 20 is when in the left hand, 21 is when in the right hand. These 2 values can have multiple IDs to attackmodes.
Then next thing you're going to need for your weapon an attack mode, you can use exsisting attack modes or copy/paste and alter one to make your own like I did : Also be sure to update the ID in your itemtype so it uses your new attack mode
Everything in attack mode table looks pretty straight-forward but since I use charged ammos, I have to include a chargeprofile, mine is 32 :
Here you just change it as appropriate, you tell the game what kind of object you using in the strItemID. I'm using the Laptop battery so my ID and subgroup number is 33.2.
Lastly, you need to create a treasure table for your ammo :
If you go right back to our itemtype at the top, you'll see that I made sure to use the new treasuretable ID in nTreasureID.
And that does it, if I'm not mistaken it should work, unless I've forgotten something, which is likely ;D
Be sure to check out my Makeshift Laser Rifle Mod here http://bluebottlegames.com/main/node/3086
or for more information on creating crafting recipes for your new monster weapon go here http://bluebottlegames.com/main/node/3062
Hope this helps! happy modding :)
Added to the Little Book of Modding Lore (Patent Pending)
Why do you have to to this and how do I determine mine? <column name="aTreasures">33.2x1x1</column>
I typed ze wrong name :( lol. I wanted sanjrang.