Jump to content

Recommended Posts

Posted
  On 4/22/2012 at 10:11 PM, fg109 said:

@Phnx

 

To run a script only once the first time you start the game with the mod loaded, just create a start game enabled quest, and put whatever you want done in the purl=http://www.creationkit.com/OnInit]OnInit[/url] event in the quest script. You can stop the quest afterwards with the Stop function.

 

If you want to have the script run once every time the game is loaded, you would have to do something else.

Thank you again! :)

  • Replies 272
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)
Hey thanks a lot Fg!!! You've been a big help. It works to a certain degree but I'm sure that its very difficult to create the script. So for instance you commit the crime with it on they chase you. Then you take off the mask they stop and chasing you and become friendly again but if you talk to a guard he still says you broke the law you owe this or whatever. But in hindsight it works So I'm happy with it.Just don't talk to guards lol. Edited by Nephilim722
Posted (edited)

@bluesmurph

 

Unfortunately, there aren't any scripting commands that can affect the crafting system.

 

 

@anubispriest

 

Just change the value of the "NewOutfit" property for each NPC to the outfit you want:

 

 

  Reveal hidden contents

 

 

 

@Nite16

 

Sorry, but there's no way to get rid of those scripts.

 

 

@ulera

 

1. You could script the weapon to appear to fire multiple arrows, but it's impossible to make it seem like they're all fired at the same time. At best, it'd look like a machine gun.

 

 

 

 

2. You could use GetItemCount in a script to check the amount of arrows the player currently has.

 

 

  Reveal hidden contents

 

 

 

EDIT: Can someone recommend some free video editing software? I don't need anything complicated, just something that would let me cut out parts of the video.

Edited by fg109
Posted
  On 4/23/2012 at 7:10 AM, fg109 said:

EDIT: Can someone recommend some free video editing software? I don't need anything complicated, just something that would let me cut out parts of the video.

VirtualDub must do the trick.

Posted

@Nite16 : I was hoping to help, but from fg109's reply it seems you have a known issue. I feel bad for you, really. :wallbash:

 

@fg109: Thank you. I think I see how it works. Once attached to the NPC it checks the status of the marriage AND of the relationship to the player: if both are true it changes the clothing on load of the cell where the actor NPC is currently.

 

Thanks very much!!!!!!!!!!!!!!!!!!! :biggrin: :biggrin: :biggrin:

Posted (edited)

@DarkPhoenixxy

 

Thanks. :)

 

EDIT: Oops, just noticed that I missed your request. Well looking at your code, there's nothing really wrong with it. What did you to happen, and what actually happened when you used it?

 

 

@anubispriest

 

Actually, it checks to see whether or not the RelationshipMarriageFIN quest is running, and then whether or not the NPC is the specific alias in that quest every time the npc is loaded.

Edited by fg109
Posted (edited)

Well, my problem is that

Event OnActivate(ObjectReference akActionRef)
thisHorse.OpenInventory(1)
endEvent

is working but the

Event OnActivate(ObjectReference akActionRef)
if Game.GetPlayer().IsSneaking()
thisHorse.OpenInventory(1)
endIf
endEvent

Dont work no matter sneaking you or not.

Actually i want to make player bieng able to sneak-use horse, to get something happen instead of mounting it. All that i get so far is opening horse inventory while player still mount it in the same time.

Edited by DarkPhoenixxy
Posted

@DarkPhoenixxy

 

Event OnInit()
BlockActivation()
EndEvent

Event OnActivate(ObjectReference akActionRef)
if (akActionRef as Actor)
	if ((akActionRef as Actor).IsSneaking())
		OpenInventory(True)
		Return
	endif
endif
Activate(akActionRef, True)
EndEvent

Posted

Hey any way you can help me create a script that simply when a magic effect is used the player loses a variable amount of health?

 

It would run via a script attached to a magic effect.

 

Thanks!

phenderix

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...