Dragonperil Posted May 22, 2007 Share Posted May 22, 2007 Hey guys, i've always avoided scripting in the past, been trying to get to grips wit it in the last few days and i've kinda lost patience. Here's what i need help with. The quest to begin as soon as the player loads the game with the mod active, i've checked tutorials and done as they suggest but it doesn't begin.The quest to advance once the player reaches a cell in the imperial bastion, (advance 10 to 20)An item that's found in the cell advances the quest to stage 30.An item that's found (and read) in The First Edition shifts the quest to stage 40.Entering the Chapel of Zenithar Undercroft moves the quest stage to 50.Finally, activating a corpse to activate the last stage, stage 60. Any help would be greatly appreciated so i can submit this mod and hopefully make an ongoing story. Link to comment Share on other sites More sharing options...
Povuholo Posted May 22, 2007 Share Posted May 22, 2007 Call of Cthulhu - Dark Corners of the Earth was a great game. :) I don't know about the first one. Once the player reaches a cell? I'd try placing a trigger box just inside at the door (Make it big enough so the player can't walk past it), with this script:scn YourScript short triggered float timer begin onTrigger player if triggered == 0 && getstage YourQuestID == 10 setstage YourQuestID 20 set triggered to 1 endif end begin gameMode if triggered == 1 && timer <= 0 set triggered to 0 endif if timer >= 0 set timer to timer - getSecondsPassed endif endSame type of script can be used for the chapel undercroft. Just change the stage numbers and put the trigger box in the cell. Item found? Put this script on the item.scn YourScript begin onadd player if getstage Yourquest == 20 setstage YourQuest 30 endif endFor the book you could replace onadd with onactivate (remove player) if the book the player has to read is somewhere in a cell (So not in a container, or bought). If the player has to read it while it's in his inventory, replace onadd with onequip. Obviously you also have to change the stage number check and command. The corpse? Put this script on the corpse. scn YourScript begin onactivate activate if getstage Yourquest == 50 setstage YourQuest 60 endif endGood luck. If you have any problems with quests, ask me. Link to comment Share on other sites More sharing options...
Dragonperil Posted May 22, 2007 Author Share Posted May 22, 2007 Thanks alot, you've been a big help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.