PDA

View Full Version : CMAN scripts targeting dead creatures



rx77310
11-07-2017, 10:35 PM
So I made a cman dirtkick script. It works great except for when there's a dead creature around with the same name. It will target the dead creature and say the critters dead instead of targeting the living critter that I want it to target.

Is there anything I can do about this?

Tgo01
11-07-2017, 10:43 PM
Use status.

So like target = GameObj.npcs.find{|i| i.name =~ /rat/ && i.status !~ /dead/

Whoops. Noticed this wasn't in the Lich folder. Not sure about wizard or SF scripts.

Ososis
11-08-2017, 12:03 AM
I add PUT LOOT at the start of my attack scripts to clear the bodies.

rx77310
11-08-2017, 03:58 PM
I add PUT LOOT at the start of my attack scripts to clear the bodies.

I think if i loot I won't be able to skin the creature?