Too many small questions, don’t want to pollute the forums.
I’m trying to make a wishing command that’ll summon a genie, my code is this:
[code]z_summon is a kind of thing.
instead of dropping the z_summon:
say “You dropped the wishing rock and it broke into a trillion pieces”;
remove the noun from play;
now Zozael is in the location.
The Odd Stone is a z_summon. It is inside The Strange Box.
Understand “stone”, “rock”, “odd” as The Odd Stone.
[/code]
What i’m trying to do is create a set up that does the following.
On the text “I wish” (will have following text that I don’t care about but expect the player to write in). If the player is holding the z_summon, it’s meant to drop the summon, spawn the NPC named Zozael and then start a discussion dialogue.
My problem is that I can’t seem to get the “wish” part to work.
I’ve tried
[code]understand the command “wishing” as something new. understand “I wish [text]” as wishing. wishing is an action applying to anything.
Check wishing:
if Z_summon is carried, try dropping z_summon.
[/code]
But it doesn’t seem to work. It throws up complains about the try drop and about the wishing part. THe only way I can get the command to work is by having no [text] at the end, but if I do that, every time the test data has “I wish” written in it it only works if here’s no text following, else throws the “I only understand you as far as…” error.