Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Ammo  (Read 1445 times)

Fenrir

  • Guest
Ammo
« on: December 31, 2007, 08:20:00 pm »

If I add more than one type of ammo in a entity definition, in adventure mode I only start with the ammo at the top, no matter what weapon I get.

Example:
[WEAPON:ITEM_WEAPON_GAUSS_RIFLE]
  [AMMO:ITEM_AMMO_GAUSS_SHOT] <---- I get Gauss Shot, even if I start with a weapon other than the Gauss Rifle.
[WEAPON:ITEM_WEAPON_ELECTRON_GUN]
  [AMMO:ITEM_AMMO_ELECTRODE_DART]
[WEAPON:ITEM_WEAPON_ANTIMATTER_DRIVER]
  [AMMO:ITEM_AMMO_ANTIMATTER_ORB]
[WEAPON:ITEM_WEAPON_CANISTER_LAUNCHER]
  [AMMO:ITEM_AMMO_LIQUID_NITROGEN_CANISTER]
  [AMMO:ITEM_AMMO_BOOZE_BOMB]
[WEAPON:ITEM_WEAPON_SHREDDER]
  [AMMO:ITEM_AMMO_SHREDDER_BLADE]
[WEAPON:ITEM_WEAPON_RAIL_GUN]
  [AMMO:ITEM_AMMO_METAL_SPHERE]

Is there a workaround?

Logged

Torak

  • Bay Watcher
  • God of Gods of Blood.
    • View Profile
Re: Ammo
« Reply #1 on: December 31, 2007, 09:13:00 pm »

Copy the txt to here.
Logged
As you journey to the center of the world, feel free to read the death announcements of those dwarves that suffer your neglect.

One billion b-balls dribbling simultaneously throughout the galaxy. One trillion b-balls being slam dunked through a hoop throughout the cosmos. I can feel every single b-ball that has ever existed at my fingertips, I can feel their collective knowledge channeling through my veins. Every jumpshot, every rebound and three-pointer, every layup, dunk and free throw.

Fenrir

  • Guest
Re: Ammo
« Reply #2 on: December 31, 2007, 09:25:00 pm »

code:

[ENTITY:PLAINS]
   [PLAINS_SETTLEMENTS]
   [INDIV_CONTROLLABLE]
   [CREATURE:HUMAN]
   [TRANSLATION:HUMAN]
   [WEAPON:ITEM_WEAPON_GAUSS_RIFLE]
          [AMMO:ITEM_AMMO_GAUSS_SHOT]
       [WEAPON:ITEM_WEAPON_ELECTRON_GUN]
          [AMMO:ITEM_AMMO_ELECTRODE_DART]
       [WEAPON:ITEM_WEAPON_ANTIMATTER_DRIVER]
          [AMMO:ITEM_AMMO_ANTIMATTER_ORB]
       [WEAPON:ITEM_WEAPON_CANISTER_LAUNCHER]
          [AMMO:ITEM_AMMO_LIQUID_NITROGEN_CANISTER]
          [AMMO:ITEM_AMMO_BOOZE_BOMB]
       [WEAPON:ITEM_WEAPON_SHREDDER]
          [AMMO:ITEM_AMMO_SHREDDER_BLADE]
       [WEAPON:ITEM_WEAPON_RAIL_GUN]
          [AMMO:ITEM_AMMO_METAL_SPHERE]
   [ARMOR:ITEM_ARMOR_PLATEMAIL:COMMON]
   [ARMOR:ITEM_ARMOR_CHAINMAIL:COMMON]
   [ARMOR:ITEM_ARMOR_LEATHER:COMMON]
   [ARMOR:ITEM_ARMOR_COAT:COMMON]
   [ARMOR:ITEM_ARMOR_SHIRT:COMMON]
   [ARMOR:ITEM_ARMOR_CLOAK:COMMON]
   [ARMOR:ITEM_ARMOR_TUNIC:COMMON]
   [ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
   [ARMOR:ITEM_ARMOR_CAPE:COMMON]
   [ARMOR:ITEM_ARMOR_VEST:COMMON]
   [ARMOR:ITEM_ARMOR_DRESS:COMMON]
   [ARMOR:ITEM_ARMOR_ROBE:COMMON]
   [HELM:ITEM_HELM_HELM:COMMON]
   [HELM:ITEM_HELM_CAP:COMMON]
   [HELM:ITEM_HELM_HOOD:COMMON]
   [HELM:ITEM_HELM_TURBAN:UNCOMMON]
   [HELM:ITEM_HELM_MASK:RARE]
   [HELM:ITEM_HELM_VEIL_HEAD:UNCOMMON]
   [HELM:ITEM_HELM_VEIL_FACE:RARE]
   [HELM:ITEM_HELM_SCARF_HEAD:UNCOMMON]
   [GLOVES:ITEM_GLOVES_GAUNTLETS:COMMON]
   [GLOVES:ITEM_GLOVES_GLOVES:COMMON]
   [GLOVES:ITEM_GLOVES_MITTENS:COMMON]
   [SHOES:ITEM_SHOES_SHOES:COMMON]
   [SHOES:ITEM_SHOES_BOOTS:COMMON]
   [SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
   [SHOES:ITEM_SHOES_SANDAL:COMMON]
   [SHOES:ITEM_SHOES_CHAUSSE:UNCOMMON]
   [SHOES:ITEM_SHOES_SOCKS:COMMON]
   [PANTS:ITEM_PANTS_PANTS:COMMON]
   [PANTS:ITEM_PANTS_GREAVES:COMMON]
   [PANTS:ITEM_PANTS_LEGGINGS:COMMON]
   [PANTS:ITEM_PANTS_LOINCLOTH:COMMON]
   [PANTS:ITEM_PANTS_THONG:UNCOMMON]
   [PANTS:ITEM_PANTS_SKIRT:COMMON]
   [PANTS:ITEM_PANTS_SKIRT_SHORT:COMMON]
   [PANTS:ITEM_PANTS_SKIRT_LONG:COMMON]
   [PANTS:ITEM_PANTS_BRAIES:UNCOMMON]
   [SHIELD:ITEM_SHIELD_SHIELD]
   [SHIELD:ITEM_SHIELD_BUCKLER]
   [SIEGEAMMO:ITEM_SIEGEAMMO_BALLISTA]
   [TOY:ITEM_TOY_PUZZLEBOX]
   [TOY:ITEM_TOY_BOAT]
   [TOY:ITEM_TOY_HAMMER]
   [TOY:ITEM_TOY_AXE]
   [INSTRUMENT:ITEM_INSTRUMENT_FLUTE]
   [INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
   [INSTRUMENT:ITEM_INSTRUMENT_HARP]
   [INSTRUMENT:ITEM_INSTRUMENT_DRUM]
   [INSTRUMENT:ITEM_INSTRUMENT_PICCOLO]
   [SIEGER]
   [CLOTHING]
   [CURRENCY:COPPER:1]
   [CURRENCY:SILVER:5]
   [CURRENCY:GOLD:15]
   [CULL_SYMBOL:ALL:SUBORDINATE]
   [CULL_SYMBOL:ALL:EVIL]
   [CULL_SYMBOL:ALL:UNTOWARD]
   [CULL_SYMBOL:ALL:NEGATIVE]
   [CULL_SYMBOL:ALL:UGLY]
   [CULL_SYMBOL:ALL:NEGATOR]
   [SELECT_SYMBOL:CIV:NAME_ENTITY_KINGDOM]
   [SELECT_SYMBOL:SITE:NAME_ENTITY_TOWN_FOUNDER]
   [RIVER_PRODUCTS]
   [OCEAN_PRODUCTS]
   [OUTDOOR_FARMING]
   [USE_ANIMAL_PRODUCTS]
   [COMMON_DOMESTIC_PACK]
   [COMMON_DOMESTIC_PULL]
   [COMMON_DOMESTIC_MOUNT]
   [COMMON_DOMESTIC_PET]

Here's the human entity, if that's what you mean.

Logged

Torak

  • Bay Watcher
  • God of Gods of Blood.
    • View Profile
Re: Ammo
« Reply #3 on: December 31, 2007, 09:27:00 pm »

How about the weapon files for the items too.
Logged
As you journey to the center of the world, feel free to read the death announcements of those dwarves that suffer your neglect.

One billion b-balls dribbling simultaneously throughout the galaxy. One trillion b-balls being slam dunked through a hoop throughout the cosmos. I can feel every single b-ball that has ever existed at my fingertips, I can feel their collective knowledge channeling through my veins. Every jumpshot, every rebound and three-pointer, every layup, dunk and free throw.

Fenrir

  • Guest
Re: Ammo
« Reply #4 on: December 31, 2007, 09:36:00 pm »

The weapons...
code:

item_weapon

[OBJECT:ITEM]

[ITEM_WEAPON:ITEM_WEAPON_GAUSS_RIFLE]
[NAME:Gauss rifle:Gauss rifles]
[DAMAGE:40:BLUDGEON]
[WEIGHT:30]
[SKILL:HAMMER]
[RANGED:BOW:GAUSS_SHOT]
[TWO_HANDED:1]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]


[ITEM_WEAPON:ITEM_WEAPON_ELECTRON_GUN]
[NAME:electron gun:electron guns]
[DAMAGE:40:BLUDGEON]
[WEIGHT:30]
[SKILL:HAMMER]
[RANGED:CROSSBOW:ELECTRODE_DART]
[TWO_HANDED:1]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]


[ITEM_WEAPON:ITEM_WEAPON_ANTIMATTER_DRIVER]
[NAME:antimatter driver:antimatter drivers]
[DAMAGE:40:BLUDGEON]
[WEIGHT:30]
[SKILL:HAMMER]
[RANGED:AXE:ANTIMATTER_ORB]
[TWO_HANDED:1]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]


[ITEM_WEAPON:ITEM_WEAPON_CANISTER_LAUNCHER]
[NAME:canister launcher:canister launchers]
[DAMAGE:40:BLUDGEON]
[WEIGHT:30]
[SKILL:HAMMER]
[RANGED:SWORD:CANISTER]
[TWO_HANDED:1]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]


[ITEM_WEAPON:ITEM_WEAPON_SHREDDER]
[NAME:shredder:shredders]
[DAMAGE:40:BLUDGEON]
[WEIGHT:30]
[SKILL:HAMMER]
[RANGED:MACE:SHREDDER_BLADE]
[TWO_HANDED:1]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]


[ITEM_WEAPON:ITEM_WEAPON_RAIL_GUN]
[NAME:rail gun:rail guns]
[DAMAGE:40:BLUDGEON]
[WEIGHT:30]
[SKILL:HAMMER]
[RANGED:SPEAR:METAL_SPHERE]
[TWO_HANDED:1]
[MINIMUM_SIZE:5]
[MATERIAL_SIZE:3]



... and ammo.
code:

item_ammo

[OBJECT:ITEM]

[ITEM_AMMO:ITEM_AMMO_GAUSS_SHOT]
[NAME:Gauss shot:Gauss shot]
[CLASS:GAUSS_SHOT]
[DAMAGE:200:PIERCE]


[ITEM_AMMO:ITEM_AMMO_ELECTRODE_DART]
[NAME:electrode dart:electrode darts]
[CLASS:ELECTRODE_DART]
[DAMAGE:200:BURN]


[ITEM_AMMO:ITEM_AMMO_ANTIMATTER_ORB]
[NAME:antimatter orb:antimatter orbs]
[CLASS:ANTIMATTER_ORB]
[DAMAGE:200:GORE]


[ITEM_AMMO:ITEM_AMMO_LIQUID_NITROGEN]
[NAME:liquid nitrogen canister:liquid nitrogen canisters]
[CLASS:CANISTER]
[DAMAGE:200:COLD]


[ITEM_AMMO:ITEM_AMMO_BOOZE_BOMB]
[NAME:booze bomb:booze bombs]
[CLASS:CANISTER]
[DAMAGE:200:HEAT]


[ITEM_AMMO:ITEM_AMMO_SHREDDER_BLADE]
[NAME:shredder blade:shredder blades]
[CLASS:SHREDDER_BLADE]
[DAMAGE:200:SLASH]


[ITEM_AMMO:ITEM_AMMO_METAL_SPHERE]
[NAME:metal sphere:metal spheres]
[CLASS:METAL_SPHERE]
[DAMAGE:200:BLUDGEON]


[ December 31, 2007: Message edited by: Fenrir ]

Logged

Fenrir

  • Guest
Re: Ammo
« Reply #5 on: December 31, 2007, 10:00:00 pm »

Problem fixed.
Logged

Torak

  • Bay Watcher
  • God of Gods of Blood.
    • View Profile
Re: Ammo
« Reply #6 on: December 31, 2007, 10:02:00 pm »

What did you do wrong?
Logged
As you journey to the center of the world, feel free to read the death announcements of those dwarves that suffer your neglect.

One billion b-balls dribbling simultaneously throughout the galaxy. One trillion b-balls being slam dunked through a hoop throughout the cosmos. I can feel every single b-ball that has ever existed at my fingertips, I can feel their collective knowledge channeling through my veins. Every jumpshot, every rebound and three-pointer, every layup, dunk and free throw.

Fenrir

  • Guest
Re: Ammo
« Reply #7 on: December 31, 2007, 10:21:00 pm »

I had a file in the raws folder named "objects - Backup". I removed it and it worked fine. I've no idea why.
Logged