Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Nyx

Allies
  • Posts

    2
  • Joined

  • Last visited

Nyx's Achievements

Layman

Layman (1/11)

0

Reputation

  1. I was following a tutorial on Youtube (this one here: ) which basically said to registerforsleep on the papyrus entry of the first quest stage 0 which I did add there Alias_Player.RegisterForSleep() Unfortunately, most of his quest was focused on making the player wake up to a mysterious note - whereas I want the player to wake up to an intruder in the room, who then talks to her, beginning a quest. I had no idea calling the script 'Sin' after the character would cause problems, but seems so obvious now lol x.x So now I tried renaming the script, and changing it to: Scriptname NyxSleepScript extends ReferenceAlias event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime) MrMaddox.getActorRef().Enable() MrMaddox.getRef().MoveTo(Game.Getplayer() endevent event OnSleepStop(Bool abInterrupted) GetOwningQuest().SetStage(10) UnregisterForSleep() endevent It works! Now just to figure out how to make him forcegreet the player I think it also wasn't working as I didn't realise that once you set properties on the script, you can change the value to point to the correct alias, before it was simply using default value. Thank you for helping, I never would have realised his name would mess up script! EDIT: I wonder if you know how to specify any dragon as a condition? I want if possible for the player to kill a dragon, go to sleep and then have the sleep interrupted. I've managed to make this work with killing a guard if I use GetFaction and IsGuard, but it seems DragonFaction only includes certain unique dragons - which wouldn't be suitable if the player has already finished the quest line. Ah, found out DragonFaction DOES work for any dragon brilliant
  2. Hi, I'm new to scripting and have been trying to work this out for hours, but seems no matter what combinations I use, I can't get this script to compile. I'm trying to enable then teleport a custom character to the player after they sleep, but I keep getting errors with the MoveTo function. Any help would be greatly appreciated. My script is currently: Scriptname Sin06PlayerScript extends ReferenceAlias event OnSleepStart(float atSleepStartTime, float atDesiredSleepEndTime) Sin.getRef().Enable() Sin.MoveTo(Game.Getplayer()( 200, 0, 0) UnregisterForSleep() endevent I have an alias set up for Sin and the player, but still receive these error messages: Starting 1 compile threads for 1 files... Compiling "Sin06PlayerScript"... X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,28): mismatched input '(' expecting RPAREN X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,32): required (...)+ loop did not match anything at input ',' X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,35): required (...)+ loop did not match anything at input ',' X:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Sin06PlayerScript.psc(6,38): required (...)+ loop did not match anything at input ')' No output generated for Sin06PlayerScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on Sin06PlayerScript I'm guessing perhaps commas and/or brackets are in the wrong place?
×
×
  • Create New...