Jump to content

I don't know which one to add to the formlist?


pxd2050

Recommended Posts

I want to use ConsoleUtil to change follower, so I make a formlist , but I don't know which one to add to the formlist? "actor" or "placed NPC"? Doesn't seem to work?

Scriptname TBM_attackdamageScript Extends Quest Hidden

formlist Property attackdamagemult5  Auto  
formlist Property attackdamagemult15  Auto  
formlist Property attackdamagemult30  Auto  

Event OnPlayerLoadGame()
	int sizeN15 = attackdamagemult15.GetSize()
	int i = 0
	While i < sizeN15
		ObjectReference N15 = attackdamagemult15.GetAt(i) as ObjectReference
		ConsoleUtil.SetSelectedReference(N15)
		ConsoleUtil.ExecuteCommand("setav attackdamagemult .15")
		i += 1
	EndWhile
EndEvent
Edited by pxd2050
Link to comment
Share on other sites

I know English is not your native language, but please check next:

Scriptname TBM_attackdamageScript Extends Quest Hidden

Event OnPlayerLoadGame()
  ; some code here
EndEvent

Its impossible to trigger event OnPlayerLoadGame() within a script of type quest.

Every script type (marked as "extends type") has a single script to look for.

 

Quest.psc

ReferenceAlias.psc

Actor.psc

ObjectReference.psc

ActiveMagicEffect.psc

 

Inside the scripts you will find the events and functions (native or convenience) which can be used within the scripts self-made.

Edited by ReDragon2013
Link to comment
Share on other sites

  • Recently Browsing   0 members

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