|
||
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: Germany (american though)
Age: 32
Posts: 957
|
I made this by special request a long while ago for some of our players.
a Beer Elemental, when killed leaves behind "a puddle of beer", between 5~11 gold, and a bottle of liquor. It only hits for 1 damage (this is intentional) I have commented out the OnHit lines (listed below), as they undoubtedly do not exist in your files. In order to get the elemental to work fully, you will need to duplicate your HitPoison scripts and have it boost your players BAC. //public override Poison HitBeer{ get{ return Poison.Lethal; } } //public override double HitBeerChance{ get{ return 0.75; } } Its not really dangerous to fight one, it just makes you really drunk... |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
Lol nice. I'll try iy out.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment. Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse." My Customs:
|
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Location: UK, Essex
Age: 19
Posts: 1,166
|
Ok I may be missing something but is Blood Alcohol Content included in the distro cos I can't find any scripts on it anywhere on the forum.
__________________
It is not the hand that creates worlds, It is the mind controlling it ! The New Dawn Network |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: Germany (american though)
Age: 32
Posts: 957
|
well, what you are going to want to do is in your Scripts\Engines\AI\Creature\BaseCreature.cs
after Code:
public virtual double HitPoisonChance{ get{ return 0.5; } }
Code:
public virtual Poison HitBeer{ get{ return null; } }
public virtual double HitBeerChance{ get{ return 0.5; } }
after Code:
Poison p = HitPoison; Code:
Poison b = HitBeer; Code:
defender.ApplyPoison( this, p ); Code:
if ( b != null && HitBeerChance >= Utility.RandomDouble() )
{
defender.BAC +=10;
if ( defender.BAC > 60 )
defender.BAC = 60;
if ( defender.BAC > 0 )
{
// Turn in a random direction
defender.Direction = (Direction)Utility.Random( 8 );
// Heave
defender.Animate( 32, 5, Math.Max( 1, Math.Min( 3, Utility.Random( 5, defender.BAC ) / 10 ) ), true, true, 0 );
// *hic*
defender.PublicOverheadMessage( Network.MessageType.Regular, 0x3B2, 500849 );
}
}
|
|
|
|
|
|
#9 (permalink) | |
|
Forum Expert
|
Quote:
*goes of to fight more beer elementals*.........really......just for the skill.......*hic* |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|