I assume you've attached the script, but have you also tried enabling the events with EnablevEvent? I can try to look in the engine sometime this weekend to see if these events even fire on placeables.
My suspicion however is that these events fire just fine but the effects are not being allowed to apply because of the following code from Effects_HandleApplyEffect in effects_h:
[dascript]
if (IsDead(OBJECT_SELF) &&( nEffectType != EFFECT_TYPE_RESURRECTION && nEffectType != EFFECT_TYPE_DEATH) )
{
#ifdef DEBUG
Log_Trace_Effects("effects_h.HandleApplyEffect",eEffect, "EFFECT_REJECTED - target is dead" ,OBJECT_SELF);
#endif
nReturnValue = FALSE;
}
[/dascript]
My guess is that IsDead is returning TRUE for placeables, which is probably a bug.
You could try compiling rules_core.nss after modifying a local copy of effects_h.nss to test if removing this makes a difference.
Modifié par Craig Graff, 19 juin 2010 - 05:58 .