Jump to content

The Call of Cthulhu - help needed


Dragonperil

Recommended Posts

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

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

end

Same 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
end

For 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
end

Good luck. If you have any problems with quests, ask me.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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