first, could you copy and past your game code here, using this:
[code.]your game code[/code.]
but remove the dots in the [ code ] 's
it'll look like this:
your game code
-----
you can get to the game code either by:
1. from your GUI (noob friendly with buttons and drop downs) mode, click on the button at the top bar, that looks like a note paper, and it's between the play and the ? (help) buttons. This notepaper button toggles between the GUI mode and the Code View mode.
~or~
2. simply opening your game file in note, note++, or word pad
-------
as, I'm not exactly able to figure out what you're asking for and~or what your problems are with, if you could re-explain it, I'd be appreciative.
-------
but, I'll (try to) do what I can in the meantime, lol.
I think this section has been slightly changed due to my own question about getting the orc part to work, which was quite a while ago (you can see this, by looking at the first few pages of my "Noob HK's Help Thread", hehe), so I'll go back over this section myself to help you.
getting the syntax correct within a msg (Print A Message), is really annoying... I still have trouble getting it right too, sighs
------
okay, the first part: Adding A Simple Command
this involves creating a "say" command.
if you make the command correctly, when you (as a game player) type in: say ???, the say triggers the command, and what it does is to return what you type in after ' say '.
so,
if you type in say hi, it will output back: hi
if you type in say what is your name, it will output back: what is your name
if you type in say say, have you seen my jacket?, it will output back: say, have you seen my jacket?
as it's example shows:
wiki wrote:For example:
If the player types "say hello", the "text" string variable will contain "hello"
If the player types "say what a lovely day", the "text" string variable will contain "what a lovely day"
----
for the next part, since the above isn't really useful (lol), we're going to show some basic ways of making it more useful.
now for your "say" command, you want to: Add A Script (see the picture on the wiki) ->
Print A Message -> Print [expression] (make sure you change this to *EXPRESSION*, as using the MESSAGE choice will prevent this from working, this might be your problem that you're having) "You say " + text + ", but nobody replies."
ah, the tutorial has this instead (I think this syntax will still work fine too, but let me test it, brb in a minute after posting this post, lol):
"You say "" + text + "", but nobody replies."
the rules of getting the syntax correct are way too confusing~complex for me to try to explain, so I'm not going to do so, lol.
well, I'll give it a partial go at it:
if you're just typing in a message you wanna say, then you just select the [MESSAGE] choice, and then just type in your message.
the problem lies when you want to have your message along with game coding. As first, you got to remember to switch it to [EXPRESSION], but here's where it gets complex~confusing:
prose = your message
code = game code
you need to separate the prose and code, and code and code too, with + signs, so it would look like this (for an example):
Print [EXPRESSION] "Prose1 + code1 + prose2 + code2"
but, you also got to get the " marks correct too... this is the confusing part...
Print [EXPRESSION] "Prose1 " + code1 + " prose1 " + code2 + "."
this is my method for getting it correct:
" + code + " and then you need quotes for the beginning and the end of the entire line.
so, it breaks down into parts (represented by the brackets) like this:
[ " ] [ prose1 ] [ " + code1 + " ] [ prose2 ] [ " + code2 + " ] [ ." ]
so, here is what it would look like (using my version of~from the tutorial's example):
prose1 = You say
code1 = text
prose2 = , but nobody replies
[ " ] [ prose1 ] [ " + code1 + " ] [ prose2 ] [ ." ]
[ " ] [ You say ] [ " + text + " ] [ , but nobody replies ] [ ." ]
"You say " + text + ", but nobody replies."
you (as a game player) type in:
say I have fallen and I cannot get up!
the game outputs:
You say I have fallen and cannot get up!, but nobody replies.
---------
the part about the use of the [ \" ] or [ ' ] is for putting in either a " or a ' as a part of your message.
due to the coding, for the " mark, you need to the \ sign with it, to tell the game coding that this is not a coding sign, it is just a quatation mark, as otherwise, the " mark is a code, telling the game to do some coding thing.
or, if you'd rather, you can just use the single quatation mark ( ' ), as this isn't a code of the game, so it works fine as is.
for example:
[ " ] [ prose1 ] [ \" ] [ " + code1 + " ] [ \" ] [ prose2 ] [ ." ]
[ " ] [ You say, ] [ \" ] [ " + text + " ] [ \" ] [ , but nobody replies ] [ ." ]
"You say, /" " + text + " \", but nobody replies."
you (as a game player) type in:
say I have fallen and I cannot get up!
the game outputs:
You say, " I have fallen and cannot get up! ", but nobody replies.
~OR~
[ " ] [ prose1 ] [ ' ] [ " + code1 + " ] [ ' ] [ prose2 ] [ ." ]
[ " ] [ You say, ] [ ' ] [ " + text + " ] [ ' ] [ , but nobody replies ] [ ." ]
"You say, ' " + text + " ', but nobody replies."
you (as a game player) type in:
say I have fallen and I cannot get up!
the game outputs:
You say, ' I have fallen and cannot get up! ', but nobody replies.
---------
next part of wiki: Alternative Command Patterns
in your command setting window, you can add more code words in by using a semicolon:
say #text#;shout #text#;yell #text#
so, you can use any of these words:
say #text#
game player types in: say hi
game outputs: hi
shout #text#
game player types in: shout hi
game outputs: hi
yell #text#
game player types in: yell hi
game outputs: hi
this is useful for helping the player out, as he may think of typing in talk, whereas if you only use "say", then he's stuck, as he doesn't realize to try using the word "say". This way, you give more code words for him to be able to hopefully guess at, using one of them, lol. this same thing applies for verbs, the person may not think of using the word "equip", so add in other words for the same verb code too, such as "put on" and~or "wear" and~or "clothe".
--------
let me know if you need help with the weighing section or the talk to troll section.