SphereCommunity
removing all corpse from region - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: removing all corpse from region (/Thread-removing-all-corpse-from-region)



removing all corpse from region - Rattlehead - 07-28-2013 06:41 PM

i have tried

Code:
region.allitems remove

but i guess corpse's arent considered items, is there a way to remove all corpse from inside a region?


RE: removing all corpse from region - Shidhun - 07-28-2013 10:05 PM

I can't think of a direct way, but this function works.

The only problem is, that REF1 has to be in the desired Region.

[function corpseremove]
REF1=<src> // or whatever Region you want to check
forinstances i_corpse
if (strmatch(*<region.defname>*,<REF1.region.defname>)
remove
endif
endfor
return 1


RE: removing all corpse from region - Mordaunt - 07-28-2013 10:39 PM

Another case for a FOR REGION loop Wink


RE: removing all corpse from region - darksun84 - 07-28-2013 10:46 PM

(07-28-2013 06:41 PM)Rattlehead Wrote:  i have tried

Code:
region.allitems remove

but i guess corpse's arent considered items, is there a way to remove all corpse from inside a region?

region.allitems remove works for me for removing corpse Shock


RE: removing all corpse from region - Ben - 07-29-2013 01:01 AM

There is no need for a for region loop... all loops cna already be applied to regions Tongue


RE: removing all corpse from region - Mordaunt - 07-29-2013 01:46 AM

Quit being lazy Tongue


RE: removing all corpse from region - Rattlehead - 07-29-2013 03:43 AM

(07-28-2013 10:46 PM)darksun84 Wrote:  
(07-28-2013 06:41 PM)Rattlehead Wrote:  i have tried

Code:
region.allitems remove

but i guess corpse's arent considered items, is there a way to remove all corpse from inside a region?

region.allitems remove works for me for removing corpse Shock

hmm, ur right, the way i was calling it wasnt working, but if i call a function

Code:
region.allitems remove_items

[function remove_items]
remove

then it works right oO ???


RE: removing all corpse from region - darksun84 - 07-29-2013 04:50 AM

yep it worked for me Shock