Backpack of Carrying

https://attnam.com/topics/Backpack-of-Carrying

The Cathedral of Attnam > Other Coding

#1 Oct 10, 2017, 11:34 am Hide

Chiko

I thought about a cloak of carrying but that made like, no sense at all so I made this instead:



The backpacks work like the belt counterpart and since they still count as cloaks, they protect the whole body so I decreased their protection rate so they make more sense.

I made a torn sprite for them and you can even see the straps in the character.

Here's the .dat code I used in case anyone is interested:
Config PACK_OF_CARRYING;
  {
    Possibility = 30;
	AffectsCarryingCapacity = true;
	NameSingular = "backpack";
    PostFix = "of carrying";
	Alias == "backpack";
	BitmapPos = 32, 16;
	CloakBitmapPos = 80, 290;
	DefaultMainVolume = 1920;
	StrengthModifier = 50;
	InElasticityPenaltyModifier = 20;
    Price = 100;
    PriceIsProportionalToEnchantment = true;
    MainMaterialConfig = { 4, CLOTH, LEATHER, HARDENED_LEATHER, TROLL_HIDE; }
    MaterialConfigChances = { 4, 10, 15, 25, 50; }
    EnchantmentPlusChance = 1;
  }
  
  Config BROKEN|PACK_OF_CARRYING;
  {
    Possibility = 15;
	AffectsCarryingCapacity = false;
    BitmapPos = 80, 352;
	CloakBitmapPos = 80, 290;
    InElasticityPenaltyModifier = 10;
    Price = 0;
    MainMaterialConfig = { 4, CLOTH, LEATHER, HARDENED_LEATHER, TROLL_HIDE; }
    MaterialConfigChances = { 4, 10, 15, 25, 50; }
    EnchantmentPlusChance = 3;
  }
#2 Oct 10, 2017, 12:08 pm Hide

red_kangaroo

Such a backpack should really act as a container.
#3 Oct 10, 2017, 12:11 pm Hide

Chiko

That's what I did first but them being indestructible and no possible way to deactivate the CreateLockConfigurations thingy make them a bit weird as containers, IMO.
#4 Oct 10, 2017, 5:57 pm Hide

MrMagolor

Quote
no possible way to deactivate the CreateLockConfigurations thingy make them a bit weird as containers

This is IVAN, stranger things exist than locked backpacks.
#5 Oct 10, 2017, 6:15 pm Hide

Chiko

True dat... Alright, I'll add a [fabric/leather] satchel as a new container. It'll be lighter than all the other containers but will have less room and won't really protect the contents against explosions and the like. Still, it should be enough to keep valuables safe from those annoying magpies.
#6 Oct 10, 2017, 6:46 pm Hide

MrMagolor

Here's an idea: "Grenadier Dwarves" that carry satchels full of dwarven grenades.

Although I don't think you can make creatures take items out of bags, you could probably make an enemy that throws grenades as an attack.
#7 Oct 10, 2017, 7:33 pm Hide

fejoa

MrMagolor wrote
Here's an idea: "Grenadier Dwarves" that carry satchels full of dwarven grenades.

Although I don't think you can make creatures take items out of bags, you could probably make an enemy that throws grenades as an attack.

It's been done in CLIVAN. If only my internet provider would hurry up and connect me...
#8 Oct 10, 2017, 7:48 pm Hide

MrMagolor

Quote
It's been done in CLIVAN.

Which part, the enemies taking items out of bags, enemies throwing as attacks, or both?
#9 Oct 10, 2017, 8:17 pm Hide

Chiko

After some testing, this is how satchels are working so far:

-They are really weak, so even throwing one against a wall will break both its lock and the fragile contents inside, if any.
-Can be used as a way to deliver harmful liquids and gasses by filling them with bottles and dwarven bombs and throwing the satchel.
-They have less storage space but enough to fit another satchel or a strong box, if these are not filled with items themselves, that is.
-Most (cloak)backpacks won't fit in them unless they are made of a light material.
-I renamed the "backpack full of gunpowder" to "satchel full of gunpowder" and gave them the satchel sprite instead. They do not fit in (container)satchels.
#10 Oct 10, 2017, 9:24 pm Hide

fejoa

MrMagolor wrote
Which part, the enemies taking items out of bags, enemies throwing as attacks, or both?

Enemies selecting suitable items from their inventories, and enemies throwing as attacks.

EDIT: And also enemies replenishing their stock of items to throw by searching for items on the ground.