|
Post by doulos on Jun 15, 2016 18:21:35 GMT
Ok, this is a simple piece of code based on the Wiki Scripts. Seems like it should work, but when I search it does not run the code, but only gives the little message that the player is searching. Where am I going wrong here?
|
|
|
Post by Afara on Jun 15, 2016 21:05:28 GMT
I'm pretty sure it is a case-sensitivity thing. You have typed the room object action/verb/interaction with lower-case (search) in the world editor but it checking for equality with uppercase (Search). They must either match with correct casing or you can change the comparison to a case-insensitive comparison (which I don't currently remember how to do .
|
|
|
Post by doulos on Jun 15, 2016 22:15:22 GMT
I've tried with both lower case and upper case. Not sure what I am missing. I'll keep at it.
|
|
|
Post by doulos on Jun 15, 2016 23:05:27 GMT
Looks like it was just an publishing issue, so that's fixed now.
A couple other questions if I may.
1) How do I place an item directly in a player's inventory, as opposed to on the ground (which I have done using room:SpawnItem.
2) How can I send a message directly to the player, but not to the rest of the room. I can use room:Write but then everyone sees that message. I'd like to pass along information to someone doing a quest, but not have everyone else in the room see it as well.
|
|
|
Post by Afara on Jun 16, 2016 4:59:12 GMT
Ok, I see.
1) To place an item in the players inventory use player:SpawnItem, where player is a variable referencing the creature you want to have the item.
2) User player:Write or creature:Write in the same way as room:Write.
You can find all available methods/commands/properties if you press the "Show Help" button in the editor. The help window shown is automatically generated so it will be up to date. Everything available for a Creature is also available for players and NPCs, though not the other way around.
|
|