Sets the value for a given @statName that belongs to the @corpse object to @newValue. The @corpse may be an object pointer or object keyword. The @statName may be any one of the following stat IDs:
id name isPc isNpc isDecapitated
Example:
// // This makes it seem like the mob running the script has created a zombie // abomination from the corpse... assuming that we have an abomination // mobile with vnum 999. Any corpse will do since we directly set the vnum // of the corpse which tricks the monster zombie spell into thinking that // was the mob that died. //
%corpseSetStat( @corpse, id, 999 ) %corpseSetStat( @corpse, isNpc, 1 )
cast 'monster zombie' @corpse |