Problem with potions

Dec 30, 2010, 9:44 am
#1
Joined: Dec 30, 2010
Posts: 1
So, I tried to add a 'bottle of milk' to the game. I first added a new liquid to material.dat and defined it in define.dat and then I added the liquid in the following code:

potion /* materialcontainer-> */
{
  DefaultSize = 30;
  Possibility = 800;
  WeaponCategory = BLUNT_WEAPONS;
  Category = POTION;
  DefaultMainVolume = 60;
  DefaultSecondaryVolume = 1000;
  StrengthModifier = 50;
  BitmapPos = 0, 160;
  FormModifier = 25;
  NameSingular = "bottle";
  MainMaterialConfig == GLASS;
  SecondaryMaterialConfig = { 12, WATER, MILK, HEALING_LIQUID, OMMEL_URINE, POISON_LIQUID, VALDEMAR, ANTIDOTE_LIQUID, VODKA, TROLL_BLOOD, OMMEL_SWEAT, OMMEL_TEARS, SULPHURIC_ACID; }
  MaterialConfigChances = { 12, 100, 55, 75, 5, 50, 1, 10, 5, 25, 5, 5, 25; }
  Alias = { 2, "potion", "drink"; }
  Roundness = 70;
  CanBeBroken = true;
  AttachedGod = NONE;
  WieldedBitmapPos = 176, 144;
  IsValuable = false;
  TeleportPriority = 200;
}

The milk is actually working ingame, but for some reason the material last in line (sulphuric acid) isn't ingame anymore, I tried wishing a bottle of sulphuric acid and it doesn't recognize the item.

So, what's going on here?
Dec 30, 2010, 12:08 pm
#2
Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 2,309
I'm pretty sure you can't wish for a certain liquid. If you wish for a bottle of something, it'll just give you a bottle with a random liquid. Try wishing for dozens of bottles, i bet you find a sulphuric acid one eventually.
Dec 30, 2010, 3:38 pm
#3
Joined: Dec 11, 2008
Posts: 1,770
Cap's right. You could however make a sub-category of potion and make it so the only liquid it has is sulphuric acid and then wish for it. You could also do that for milk.

e.g.
  Config POTION_CARTON;
  {
    SecondaryMaterialConfig == MILK;
    Possibility = 10;
    NameSingular = "milk carton";
  }
System would indicate in graphic if person is mounted on horse or not.
Same system also show if person mounted on boar, elephant, polar bear etc.
Or if person mounted on ass.
Ivan find mounting on ass funny.
Dec 30, 2010, 5:19 pm
#4
Ex-Tyrant of the IVANers


Joined: Dec 8, 2007
Occupation: Junior Scientist
Location: Not California
Interests: Physics and Astronomy, Exoplanets, Singing praise to Valpurus while smashing skulls with a bloody warhammer, Jogging
Posts: 2,920
Though a carton made of glass that looks like a bottle would be kinda weird...
"Put more stuff in the... thing where... more stuff goes in."
Dec 30, 2010, 6:55 pm
#5
Joined: Nov 22, 2008
Interests: IVAN
Posts: 1,170
Ischaldirh wrote
Though a carton made of glass that looks like a bottle would be kinda weird...

Weirder than an adventurer that gets his arms and legs blown off, and after some rest, just rolls on?
Beware! 'tis EagleV, Hardcore Weaver of Baskets!
Dec 31, 2010, 10:22 pm
#6
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
Following on from 4zb4's code, and with regard to the wierdness of the carton made of glass, could the carton be made from Parchment, and have a unique bitmap position (resembling a carton) in the file item.pcx?

e.g.

Config POTION_CARTON;
{
    SecondaryMaterialConfig == MILK;
    Possibility = 10;
    NameSingular = "milk carton";

    BitmapPos = [i]x(milk carton picture)[/i], [i]y(milk carton picture)[/i];
    MainMaterialConfig == PARCHMENT;
}

Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Jan 1, 2011, 3:42 pm
#7
Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 2,309
there's such thing as bottled milk
Jan 1, 2011, 3:56 pm
#8
Joined: Jan 11, 2008
Posts: 1,019
Been quite some time since the days of the milkman. (most of my milk comes in gallon jugs)
Jan 1, 2011, 6:48 pm
#9
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
- Maybe someday there will be a side quest to lure (you would have to polymorph into a mistress) a milkman from the Gloomy Caves back to Attnam to deliver Ommel milk to the Cathedral... resulting in a newborn Bastard Son/Daughter revolutionary born to one of Petruses wives.

- Zombie of a Milkman.

- Perhaps female characters could be programmed to lactate?

Sorry to hijack the thread. In light of capristo's reminder, it would still be cool to create a milk bottle shaped graphic.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Jan 1, 2011, 11:39 pm
#10
Joined: Dec 3, 2007
Occupation: Chaos Weaver
Location: Standing between all life and death
Posts: 2,898
chaostrom wrote
<mortsoahc> Planplan 1468 today "Or eat it before an explosion make it explode ^^"
<mortsoahc> Sophia 1150 today "Lactose Intollerant, sorry."
<mortsoahc> lawl
<mortsoahc> milk explodes!
*** Shererax has quit ("shit")
<mortsoahc> that's right
<mortsoahc> next time I meet Sherarax I'mma blow her up with milk
<Bored> XD
<Somagu> I thought you said blow up her milk
<mortsoahc> LOL!
<Somagu> I was like, whooaa cowboy
Uchuudonge wrote
creating stable chaos
making patterns where there should be none
sewing order into the chaos
you spit in the face of random numbers, of chaos
Jan 2, 2011, 11:54 am
#11
Joined: Jan 11, 2008
Posts: 1,019
Warheck wrote
- Perhaps female characters could be programmed to lactate?

Elona's got that territory covered and more. I don't think IVAN needs to do it too.
Jump to