Running a sctipt on start of new game

Discussions and questions about the CS and mods for Oblivion
Locked
Oblis
Initiate
Initiate
Posts: 38
Joined: Fri May 18, 2007 2:07 pm
ES Games: Daggerfall, Morrowind, Oblivion
Platform: PC
Location: Greece

Running a sctipt on start of new game

Post by Oblis »

Can you plz tell me how i can made a script to run at the start of a new game?
Thanks
User avatar
Siken
Warder
Warder
Posts: 417
Joined: Wed May 28, 2008 11:00 am
Platform: PC
Location: Srbija

Re: Running a sctipt on start of new game

Post by Siken »

This is script and some info on quest for adding new hotkey to player in start of game from OOO mod.
Spoiler:
Quest: Start game enabled
Priority 20
____
Script;

scn gethotkeytorchagain
; modified by dev_akm to block torch message

begin GameMode

if Player.Getitemcount torchkeyold > 0
Message "Removing old hotkey torch and replacing it with improved hotkey torch. Please reset your torch hotkey. "
Message " "
Message " "
player.removeitem torchkeyold 1
endif

if Player.Getitemcount OOOTorchHotKey == 0
Message "Adding new hotkey torch. Please reset your torch hotkey."
Message " "
Message " "
player.additem OOOTorchHotKey 1
stopQuest addtorchkeyagain
endif

End
You can learn mach from OOO scripts and you can use some other utility for wieving informations like TES4Edit and others.
Now my blind eyes see what others cannot!
Image
Oblis
Initiate
Initiate
Posts: 38
Joined: Fri May 18, 2007 2:07 pm
ES Games: Daggerfall, Morrowind, Oblivion
Platform: PC
Location: Greece

Re: Running a sctipt on start of new game

Post by Oblis »

Thanks!
Locked