Jump to content

Scripting Help


FoxiShandris

Recommended Posts

I'm working on a mod that adds a functional healing gun to heal NPCs that are hit by the projectile and, in borrowing the script for the Medical Eyebots from Lonesome Road, have got everything nailed down except for one thing...

 

The weapon I attached the ammunition to does no damage, successfully heals the target, but also makes them hostile. I'm looking for a way to make it so they won't turn hostile when hit with the projectile. Can anyone help? Here's the script so far:

 

  Quote

 

SCN NVDLC04HealUlyssesSCRIPT


;Heals Ulysses when he is hit by a projectile
;DM 3/21/11


BEGIN ScriptEffectStart

RestoreActorValue PerceptionCondition 100;
RestoreActorValue EnduranceCondition 100;
RestoreActorValue LeftAttackCondition 100;
RestoreActorValue RightAttackCondition 100;
RestoreActorValue LeftMobilityCondition 100;
RestoreActorValue RightMobilityCondition 100;
RestoreActorValue Health 25;

END

BEGIN ScriptEffectUpdate

RestoreActorValue PerceptionCondition 100;
RestoreActorValue EnduranceCondition 100;
RestoreActorValue LeftAttackCondition 100;
RestoreActorValue RightAttackCondition 100;
RestoreActorValue LeftMobilityCondition 100;
RestoreActorValue RightMobilityCondition 100;
RestoreActorValue Health 25;

END

BEGIN ScriptEffectFinish

RestoreActorValue PerceptionCondition 100;
RestoreActorValue EnduranceCondition 100;
RestoreActorValue LeftAttackCondition 100;
RestoreActorValue RightAttackCondition 100;
RestoreActorValue LeftMobilityCondition 100;
RestoreActorValue RightMobilityCondition 100;
RestoreActorValue Health 25;

END

 

Link to comment
Share on other sites

  On 4/19/2015 at 3:27 AM, TheBlob2 said:

 

  On 4/19/2015 at 3:19 AM, FoxiShandris said:

 

  On 4/19/2015 at 2:13 AM, TheBlob2 said:

check the weapon as "minor crime"

I already tried that.

open this mod up in NVedit and see how it works:

http://www.nexusmods.com/newvegas/mods/43351/?

 

I have more experience with the G.E.C.K. than I do with FNVEdit, but I'll give it a try.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...