The Cathedral of Attnam

Iter Vehemens ad Necem (IVAN)
Login
Username
Password


 Valid CSS  Valid HTML 4.01 Strict

Problem with potions

The Cathedral of Attnam  >  Programming
Print

View profile
Send message
Find posts Find topics
 
Dec 30, 2010 at 1:44 pm #1  !
Mitsjol
giant mushroom


Joined: Dec 30, 2010
Posts: 1
Problem with potions
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:


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?
 
 
View profile
Send messageSend email
Find posts Find topics
 
Dec 30, 2010 at 4:08 pm #2  !
capristo's Avatar
capristo
The Imperialist


Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 1227
Groups:
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.
 
 
View profile
Send message
Find posts Find topics
 
Dec 30, 2010 at 7:38 pm #3  !
4zb4's Avatar
4zb4
archangel


Joined: Dec 11, 2008
Occupation: Not making sense
Location: The Gate
Interests: Magical Cooking!
Posts: 974
Groups:
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.

Code


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

 
image~Desuno!
 
View profile
Send message
Find posts Find topics
 
Dec 30, 2010 at 9:19 pm #4  !
Ischaldirh's Avatar
Ischaldirh
Ex-Tyrant of the IVANers


Joined: Dec 8, 2007
Occupation: Bongsniffer.png
Location: Alcohol
Interests: Bitchtits.png
Posts: 2299
Groups:
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."
 
View profile
Send message
Find posts Find topics
 
Dec 30, 2010 at 10:55 pm #5  !
Eagle V's Avatar
Eagle V
archangel


Joined: Nov 22, 2008
Interests: IVAN
Posts: 839
Groups:

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!
 
View profile
Send message
Find posts Find topics
 
Jan 1, 2011 at 2:22 am #6  !
Warheck's Avatar
Warheck
kobold lord


Joined: Sep 9, 2010
Occupation: Petty Functionary
Location: Eating pea soup in the world map
Interests: Mangoes
Posts: 118
Groups:
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.


Code



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

BitmapPos = x(milk carton picture), y(milk carton picture);
MainMaterialConfig == PARCHMENT;
}


 
 
View profile
Send messageSend email
Find posts Find topics
 
Jan 1, 2011 at 7:42 pm #7  !
capristo's Avatar
capristo
The Imperialist


Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 1227
Groups:
there's such thing as bottled milk
 
 
View profile
Send message
Find posts Find topics
 
Jan 1, 2011 at 7:56 pm #8  !
BDR's Avatar
BDR
archangel


Joined: Jan 11, 2008
Posts: 944
Been quite some time since the days of the milkman. (most of my milk comes in gallon jugs)
 
 
View profile
Send message
Find posts Find topics
 
Jan 1, 2011 at 10:48 pm #9  !
Warheck's Avatar
Warheck
kobold lord


Joined: Sep 9, 2010
Occupation: Petty Functionary
Location: Eating pea soup in the world map
Interests: Mangoes
Posts: 118
Groups:
- 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.
 
 
View profile
Send message
Find posts Find topics
 
Jan 2, 2011 at 3:39 am #10  !
chaostrom
Mage Prophet


Joined: Dec 3, 2007
Occupation: Standing between all life and death.
Posts: 2094
Groups:

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

 
image HEADBUTT
 
View profile
Send message
Find posts Find topics
 
Jan 2, 2011 at 3:54 pm #11  !
BDR's Avatar
BDR
archangel


Joined: Jan 11, 2008
Posts: 944

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.
 
 
 Print


The Cathedral of Attnam  >  Programming  >  Problem with potions

Jump to