Script not adding items to actors

Post » Thu Dec 03, 2015 12:25 pm

Don't know where the problem lies. My quest script uses "Player.PlaceAtMe MyExplosion 1" to be an area of effect. The explosion links to an Object Effect called MyEnchantment. MyEnchantment leads to MyEffect which is a Base Effect. And finally, that has the Effect Script that wants to add items to actors. The script itself is:

SCN MyEffectScriptBegin ScriptEffectStart;GENERAL EVIL ACTORS GET STUFF	If ( GetDisabled == 0  ) && ( IsActor == 1 ) && ( IsActorEvil == 1 ) && ( GetIsCreature == 0 ) && ( GetIsGhost == 0 ) && ( GetDead == 0 ) && ( GetInFaction  PlayerFaction == 0 ) ( IsInInterior == 0 )		If ( GetItemCount EAGLESmokeGrenade == 0 ) && ( GetItemCount WeapMissileLauncher == 0 ) && ( GetItemCount EAGLEMissileLauncher == 0 ) && ( GetItemCount AmmoMissile == 0 ) && ( GetItemCount EAGLEMordino == 0 ) && ( GetRandomPercent > 75 )			AddItem EAGLESmokeGrenade 2			AddItem EAGLEMissileLauncher 1			AddItem AmmoMissile 4			AddItem EAGLEMordino 1		EndIf;GENERAL GOOD ACTORS GET STUFF	ElseIf ( GetDisabled == 0  ) && ( IsActor == 1 ) && ( IsActorEvil == 0 ) && ( IsGuard == 0 ) && ( GetIsCreature == 0 ) && ( GetIsGhost == 0 ) && ( GetDead == 0 ) && ( GetInFaction  PlayerFaction == 0 ) && ( IsInInterior == 0 )		If ( GetItemCount EAGLEGasGrenade == 0 ) && ( GetItemCount testPhilGrenadeLauncher == 0 ) && ( GetItemCount EAGLEGrenadeLauncher == 0 ) && ( GetItemCount Morphine == 0 ) && ( GetRandomPercent > 75 )			AddItem EAGLEGasGrenade 4			AddItem EAGLEGrenadeLauncher 1			AddItem AmmoShotgunShell 8			AddItem Morphine 1		EndIf	EndIfEnd

The whole thing is trying to emulate the activator spell trick that worked in Oblivion, it's just using an explosion for Fallout 3. I know the explosion is happening at the player location because I used the unmissable fxnullexplosionart.nif and FXExplosionArtillaryFar sound to indicate. If everything is in order then items should be added to the inventory of actors. Testing has shown that, somewhere, something is wrong and actors are not getting any items. Can anyone see anything wrong in this process? I don't like that it has to be this chain from Explosion to Object Effect to Base Effect to Effect Script, but that was the shortest way I could see to get there based on other examples in the GECK. Help would be much appreciated to make DC and Nevada into an explosive hell for the player.

User avatar
SiLa
 
Posts: 3447
Joined: Tue Jun 13, 2006 7:52 am

Return to Fallout 3