Some verbs not working
AmyPond42
15 Feb 2013, 22:32I'm attempting to make my first text adventure game and I love adding verbs to give the players more options of things they can do, even if they don't really do anything. I added a bunch of verbs to an item ( a crowbar ) you can put into your inventory but when I played the game and clicked on the verbs ( speak to, for example ) it didn't say the text I had entered in. ( I deleted the verbs after that ) This is happening now with a container ( a bed that has the crowbar on it ) I put into the game. Am I doing something wrong? Can you not put verbs like that on these items?
HegemonKhan
16 Feb 2013, 05:11the verbs for your bed object, have no message (you just forgot to type in a message for them), so you need to add in their values by typing in the messages that you want it to say.
slap doesn't work, because you accidentally have a space after slap [ slap(space) ] in the pattern box, so delete the space at the end of slap.
I fixed up your game code, so here it is:
(I added in some stuff, which you can change of course, so you can see what you needed)
(If you don't know what to do with this, just ask, and I can help you)
and here's your own original game code, so you can compare my fixes to what you had:
slap doesn't work, because you accidentally have a space after slap [ slap(space) ] in the pattern box, so delete the space at the end of slap.
I fixed up your game code, so here it is:
(I added in some stuff, which you can change of course, so you can see what you needed)
(If you don't know what to do with this, just ask, and I can help you)
<asl version="530">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="Dungeon Escape">
<gameid>83daade6-c223-49c6-9714-dbdc4a043c2f</gameid>
<version>1.0</version>
<firstpublished>2013</firstpublished>
<category>Mystery</category>
<difficulty>Medium</difficulty>
<cruelty>Merciful</cruelty>
</game>
<object name="prison cell">
<inherit name="editor_room" />
<descprefix>You are in</descprefix>
<description>You find yourself in a dark prison cell, illuminated by the torches that line the ancient dungeon walls. The cell is empty except for an old, rotting bed and a wooden bucket.</description>
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
<hit>Stop hitting yourself.</hit>
<speak>You have nothing to say to yourself.</speak>
<smell>You need a shower.</smell>
<pov_look>Your hair is dirty and your clothes are torn.</pov_look>
<kick>Somehow you manage to kick yourself. Well done.</kick>
<slap>You slap some sense into yourself.</slap>
<hug>You give yourself a nice, big hug.</hug>
</object>
<exit name="Cell door" alias="south" to="Cell block">
<inherit name="southdirection" />
<locked />
<lockmessage>The door won't budge, its lock is completely rusted over.</lockmessage>
</exit>
<object name="bucket01">
<inherit name="editor_object" />
<alias>bucket</alias>
<look>A wooden bucket.</look>
<take />
<takemsg>You pick up the bucket.</takemsg>
<drop type="boolean">false</drop>
<kick>You kicked the bucket. Literally.</kick>
</object>
<object name="old rotting bed">
<inherit name="editor_object" />
<inherit name="surface" />
<alias>bed</alias>
<look>The straw bed is musty and covered in a tattered blanket. Sleeping on this would be next to impossible.</look>
<hidechildren type="boolean">false</hidechildren>
<listchildren />
<listchildrenprefix>Lying on the bed is</listchildrenprefix>
<hit>You hit the old rotting bed, breaking it into pieces, but it magically returns to normal.</hit>
<speak>You can't speak to a bed, silly!</speak>
<touch>You don't want to touch the yucky bed!</touch>
<smell>It smells foul!</smell>
<lick>Eww, no way!</lick>
<displayverbs>Look at; Take</displayverbs>
<takemsg>You can't carry a bed!</takemsg>
<sit>You would rather not!</sit>
<lie>Um, no! Eww!</lie>
<object name="crowbar">
<inherit name="editor_object" />
<look>A useful crowbar. Good for opening things and killing alien creatures.</look>
<take />
<takemsg>You pick up the crowbar. Now all you need is a pair of glasses and an HEV suit.</takemsg>
<kill>you scream, in a flurry of strikes, the heavy metal crowbar smashes down on the alien, closing your eyes, not wanting to see the bloody mess you are making. Needless to say, the alien is very dead!</kill>
</object>
</object>
</object>
<object name="Cell block">
<inherit name="editor_room" />
</object>
<verb>
<property>kick</property>
<pattern>kick</pattern>
<defaultexpression>"You can't kick " + object.article +"."</defaultexpression>
</verb>
<verb>
<property>slap</property>
<pattern>slap</pattern>
<defaultexpression>"You can't slap " + object.article +"."</defaultexpression>
</verb>
<verb>
<property>hug</property>
<pattern>hug</pattern>
<defaultexpression>"You can't hug " + object.article +"."</defaultexpression>
</verb>
</asl>
and here's your own original game code, so you can compare my fixes to what you had:
<asl version="530">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="Dungeon Escape">
<gameid>83daade6-c223-49c6-9714-dbdc4a043c2f</gameid>
<version>1.0</version>
<firstpublished>2013</firstpublished>
<category>Mystery</category>
<difficulty>Medium</difficulty>
<cruelty>Merciful</cruelty>
</game>
<object name="prison cell">
<inherit name="editor_room" />
<descprefix>You are in</descprefix>
<description>You find yourself in a dark prison cell, illuminated by the torches that line the ancient dungeon walls. The cell is empty except for an old, rotting bed and a wooden bucket. </description>
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
<hit>Stop hitting yourself.</hit>
<speak>You have nothing to say to yourself.</speak>
<smell>You need a shower.</smell>
<look type="string"></look>
<pov_look>Your hair is dirty and your clothes are torn.</pov_look>
<kick>Somehow you manage to kick yourself. Well done. </kick>
<slap>You slap some sense into yourself. </slap>
<hug>You give yourself a nice, big hug.</hug>
</object>
<exit name="Cell door" alias="south" to="Cell block">
<inherit name="southdirection" />
<locked />
<lockmessage>The door won't budge, its lock is completely rusted over. </lockmessage>
</exit>
<object name="bucket01">
<inherit name="editor_object" />
<alias>bucket</alias>
<look>A wooden bucket.</look>
<take />
<takemsg>You pick up the bucket.</takemsg>
<drop type="boolean">false</drop>
<kick>You kicked the bucket. Literally. </kick>
</object>
<object name="old rotting bed">
<inherit name="editor_object" />
<inherit name="surface" />
<alias>bed</alias>
<look>The straw bed is musty and covered in a tattered blanket. Sleeping on this would be next to impossible. </look>
<hidechildren type="boolean">false</hidechildren>
<listchildren />
<listchildrenprefix>Lying on the bed is </listchildrenprefix>
<hit type="string"></hit>
<speak type="string"></speak>
<touch type="string"></touch>
<smell type="string"></smell>
<lick type="string"></lick>
<displayverbs>Look at; Take</displayverbs>
<takemsg>You can't carry a bed! </takemsg>
<sit type="string"></sit>
<lie type="string"></lie>
<object name="crowbar">
<inherit name="editor_object" />
<look>A useful crowbar. Good for opening things and killing alien creatures. </look>
<take />
<takemsg>You pick up the crowbar. Now all you need is a pair of glasses and an HEV suit. </takemsg>
</object>
</object>
</object>
<object name="Cell block">
<inherit name="editor_room" />
</object>
<verb>
<property>kick</property>
<pattern>kick</pattern>
<defaultexpression>"You can't kick " + object.article + "."</defaultexpression>
</verb>
<verb>
<property>slap</property>
<pattern>slap </pattern>
<defaultexpression>"You can't slap " + object.article + "."</defaultexpression>
</verb>
<verb>
<property>hug</property>
<pattern>hug</pattern>
<defaultexpression>"You can't hug " + object.article + "."</defaultexpression>
</verb>
</asl>
AmyPond42
18 Feb 2013, 20:32Thank you very much! That's strange, I did type in some things and went to play it, they didn't work and when I went back they were all blank again. I did rewrite them but the same thing must've happened.
sgreig
19 Feb 2013, 00:45Just wanted to pop in and say I love your username! 

HegemonKhan
19 Feb 2013, 06:33Hmm, that's weird then, maybe the others would know more why that's happening. I'm not that familiar yet with the quest engine and why it does things yet. I'm a noob who's just trying to slowly learn to code using quest's coding, hehe.