Exploding chickens... *tee-hee*

Moderator: Event DM

Post Reply
Actually
Sage
Posts: 1823
Joined: Sat Dec 14, 2002 10:11 pm
Location: Red Zone: Cuba

Exploding chickens... *tee-hee*

Post by Actually » Wed Apr 23, 2003 9:09 pm

// Script: chikendeath
// Description:
// Exploding Chickens.
// When you shoot a chicken, it blows up.
// It then goes through all the chickens around it and it has a chance to blow any of those up too.
// It also has the chance of setting a 'delayed reaction' explosion on another chicken.
// Boom boom boom!
void main()
{
location lSource= GetLocation( OBJECT_SELF );
ApplyEffectAtLocation( DURATION_TYPE_INSTANT, EffectVisualEffect( VFX_FNF_FIREBALL), lSource);
object oObject = GetFirstObjectInShape( SHAPE_SPHERE, 30.0, lSource);
while( oObject != OBJECT_INVALID && d12()!=1)
{
if(GetTag(oObject)!="NW_CHICKEN")
{
if(GetIsPC(oObject)==FALSE)
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectDamage(1, DAMAGE_TYPE_FIRE), oObject);
oObject = GetNextObjectInShape( SHAPE_SPHERE, 30.0, lSource);
continue;
}
if(GetLocalInt(oObject, "DeadChicken")==1)
{
oObject = GetNextObjectInShape( SHAPE_SPHERE, 30.0, lSource);
continue;
}
if(Random(50)==47)
{
SetLocalInt( oObject, "DeadChicken", 1);
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectDamage(d6(2), DAMAGE_TYPE_FIRE), oObject);
oObject = GetNextObjectInShape( SHAPE_SPHERE, 30.0, lSource);
continue;
}
if(d6()==1)
{
SetLocalInt( oObject, "DeadChicken", 1);
AssignCommand( oObject, DelayCommand(IntToFloat(Random(20)+3), ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectDamage(d6(2), DAMAGE_TYPE_FIRE), OBJECT_SELF)));
oObject = GetNextObjectInShape( SHAPE_SPHERE, 30.0, lSource);
continue;
}
oObject = GetNextObjectInShape( SHAPE_SPHERE, 30.0, lSource);
}
}




I found this script here: http://www.baal-spy.org/NWN/chickens.html

Bye Now,
Jerry Cornelius - *tee-hee*
User avatar
stoertebeker
Scholar of Fools
Posts: 307
Joined: Thu Feb 13, 2003 6:45 pm
Location: Berlin
Contact:

Post by stoertebeker » Wed Apr 23, 2003 9:13 pm

LOOOOOOOL!!!!

:D :lol: :D :lol: :lol: :D :lol: :D :D
User avatar
izyk
Scholar of Fools
Posts: 413
Joined: Thu Jan 23, 2003 4:21 am
Location: Toronto.
Contact:

Post by izyk » Wed Apr 23, 2003 9:16 pm

Add some auto follow code using the player tracking system to this, and you have an assassins tool.

Imagine it .... Hassans Death of One Thousand Clucks

You spawn the chicken and a dialog asks you for the name of the target. You enter the characters name, and the chicken waits for the character to pass. Once the character passess within visul range, the chicken starts to follow the character. Each time the character passess another chicken the chicken is recruited to join.

Eventually the character is trailing a row of chickens, following close at his heels. Cluck, Cluck, Cluck becomes the sound of doom, and other players scatter when they see you.

Frustration or random encounters is bound to kill one of them eventually....
Zachar Mordecai
Right and Proper Society of the Iron Mantis
( aka Izyk G )
User avatar
stoertebeker
Scholar of Fools
Posts: 307
Joined: Thu Feb 13, 2003 6:45 pm
Location: Berlin
Contact:

Post by stoertebeker » Wed Apr 23, 2003 9:47 pm

that laughin was ooc for sure ...

ic i would sink to poverty to raise all the poor chickens.
so please dont implement this ... otherwise daria would have to resort to baggery in the slums of Mikona .....
Post Reply