/////////////////////////////////////////////////////////////////////////////////// // Real Time Strategy - NWN - Magic Bug Eggs //================================================================================ // By Deva Bryson Winblood. 03/10/2003 /////////////////////////////////////////////////////////////////////////////////// #include "rtsh_multiplay" void fnHatch(object oSeed) { // create bugs int nL=0; int nB=d4(); int nT; location lLoc=GetLocation(oSeed); object oBug; while(nL4) { // enough mana object oBury=CreateObject(OBJECT_TYPE_PLACEABLE,"rts_pl_mag27",lLoc,TRUE); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,eBeam,lLoc,4.0); DelayCommand(HoursToSeconds(8),fnHatch(oBury)); nMana=nMana-5; fnSetTeamMana(oPC,nMana); SendMessageToPC(oPC,"You plant the bug seeds and a trickle of 5 mana was fed into their growth to bring them out of their dormancy."); } // enough mana else SendMessageToPC(oPC,"Without at least 5 mana you can tell these seeds will remain dormant."); }