Jump to content

Recommended Posts

Posted

I'm trying to convert one of my fo3 mods to nv, but the scripting must be different... or i've forgotten how to do things

trying to start a script... well, look:

 

scn AABEFPistolEffectScript

 

REF Target

 

BEGIN ScriptEffectStart

 

If GetDead == 0

Set Target to GetSelf

Target.StopCombat Player

Player.StopCombatAlarmOnActor

Target.ClearActorsFactionsPlayerEnemyFlag

 

endif

 

END

 

BEGIN ScriptEffectFinish... blah blah blah

 

anyway, when i try to compile, it tells me that "target" is an invalid reference.. why? it worked on fallout 3

Posted (edited)

I'm guessing it's because "target" is already used as a reference value by the game.

For example dialogue options can run conditions on "subject", "target", "reference", etc

 

ie, I got the same error when I tried to set a "short SetStage" variable on a script.

Edited by FutureVisions
Posted

This is why it's a good idea to get into the habit of prefixing your variables:

 

Ref rTarget

int bIsLoaded

int iNumberOfKills

float fTargetPositionX

Posted
although, i'm now having trouble getting the liberty prime bloody mess working at all. is it still implemented properly?
  • Recently Browsing   0 members

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