// 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*
Exploding chickens... *tee-hee*
Moderator: Event DM
- stoertebeker
- Scholar of Fools
- Posts: 307
- Joined: Thu Feb 13, 2003 6:45 pm
- Location: Berlin
- Contact:
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....
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 )
Right and Proper Society of the Iron Mantis
( aka Izyk G )
- stoertebeker
- Scholar of Fools
- Posts: 307
- Joined: Thu Feb 13, 2003 6:45 pm
- Location: Berlin
- Contact: