Jump to content

How to make a inn-keeper rent you a bed? No "Bed" topic included!


Dimitrisgb

Recommended Posts

I made an inn and I want the keeper to rent one bed for the human player. I made a script which, apparently works fine (no syntax errors), but the inn-keeper has no "Bed" topic in her dialogue. And I can't add one in the dialogue box of the Construction Set.

So, what am I missing?

Link to comment
Share on other sites

I look at Wilbor in Anvil as I never made a Innkeeper myself. he has a script:

Scriptname Publican_CountsArmsWilbur

;CellName: AnvilTheCountsArmsPrivateRooms
;Publican: Wilbur
;Room: Straight across from entry door
;Door Ref: AnvilCountsArmsRentDoor



short rent
short rentday
short rentmonth
short cleanup
short setup



begin gamemode


if ( rent == 1 )
	
	if ( setup == 0 )
		set rentday to GameDay
		set rentmonth to GameMonth
		set setup to 1
		AnvilCountsArmsRentDoor.unlock	
		AnvilCountsArmsRentBed.SetOwnership

	else
	
		if ( GameDay != rentday )
			set cleanup to 1
		elseif ( GameMonth != rentmonth )
			set cleanup to 1
		endif
	endif

	if ( Player.GetinCell AnvilTheCountsArms == 0 )
		if ( Cleanup ==1 )
			set Cleanup to 2
		endif
	endif



	if ( Cleanup == 2 )
	
		set rent to 0 
		set setup to 0
		set rentday to 0
		set rentmonth to 0
		set cleanup to 0
		AnvilCountsArmsRentDoor.SetOpenState 0
		AnvilCountsArmsRentDoor.lock 30
		AnvilCountsArmsRentBed.SetOwnership Wilbur
	endif
endif



End


Not that the script will add any topic but it will help him keep track of how long time you spent on the inn by setting a variable called rent. I guess that variable gets set also in the dialogue when your char rents the room.

 

He has the bed topic so you have to add your character to that topic with the right conditions and the bed topic is not generic in any way as it is custom made for each and every Innkeeper. I have not fiddled with topics in 12 years so I am not much help at this moment but this part of CS Wiki might help.

 

You have to study the inkeepers in game - Pick one and maybe even copy it but you need to remake everything to fit your inn.

Edited by Pellape
Link to comment
Share on other sites

CS-Wiki will explain to you how the dialogue window works. You must learn how to add new dialogues into that topic and that is explained in the CS-Wiki so do not look for a topic called bed there as do look how you add dialogues. Rightclicking the bed topic or any topic will not do anything.

 

When you click the topic bed, look just on the right side of it as there is all that have that topic and I see now that they are all related to quests and that makes sense. So you do not only need to learn how to make topics as you also need to learn how the quest-editor works. So start with the Wiki, follow the tutorials for quests and dialogues and when you get done, we can continue here with the bed topic and the quest BedRental. :smile:

 

I am sorry if I cant make this more clearer than this as there is no shortcuts and no quick ways to do it, just the one way -> the proper way, the way that is explained in the quest and dialogue tutorial at CS-Wiki.

Edited by Pellape
Link to comment
Share on other sites

Good. :)

 

Well I did not say you needed to make your own as all topics must be unique, so you can only have 1 bed topic for sure and you add your char to it. But peek at the script above anyway. But I guess when you copied it, you got all the quest stuff with the copy as well. Good you did mention copy as I always do it by hand but should do more copy and paste in CS. I did learn yesterday that it is possible to just copy conditions and paste them elsewhere in another conditions window. :D I did it by mistake... ;)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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