Exploding Chickens!!

B

Bym

Guest
Doesn't seem like anyone is interested in mods except lil' ol me, but here goes.......

Download, unzip, and save to the path NeverwinterNights/NWN/modules. Open NWN, click multiplayer, choose modules and give this baby a go if you're bored!

Chicken Arena!

For those who want to play about, here is the script. This needs to go in the OnDeath Script in the chicken properties. Oh, and use a ranged weapon or face certain death!

Code:
//Script: chickendeath
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 am working on a few mods of my own (including one with harrassing prostitutes and barmaids), so I'll post the links when they're finished - hopefully someone will want them!

(This code care of 'Sembiance' @ www.cosmicrealms.com)
 
S

Sar

Guest
Lol

I'm having a bash with the toolset, haven't looked at the Scripting language yet, but hopefully it won't be too bad.
 
S

Shocko

Guest
Hmm, quite similar to C... You'd have thought they'd have gone for something more like Javascript/ActionScript.
 

Users who are viewing this thread

Top Bottom