I did not even know that there was a "Kill" command in Quest until I used the debug mode. I do not know what this does or how to implement it. Please tell me how. Thanks.
HegemonKhan
18 Jan 2014 06:16
"kill" is a built-in Verb (lower left corner of screen in GUI~Editor: Filter -> Show Library Elements):
but, I'm not too sure how it works, as I've not used it myself.
In-Code (or in, for example a Verb's, Scripting~Action, to set it, of the GUI~Editor) this is it's syntax:
orc.dead=false
"orc" (Object) -> Verb (Tab) -> Add ->
Verb (1) Name: kill Verb (1) Script: run as script ->
add a script -> Variables -> Set a variable or attribute ->
left of the equal sign: orc.dead right of the equal sign: true (orc.dead=true) // we just "re-set" (or changed) this attribute (from "orc.dead=false"~alive, to "orc.dead=true"~dead)
(or, you can use the "Set object flag on" Script ~ Object: orc, Flag~Boolean: dead ~ I think this is how it's done hopefully, lol)
add a script -> Output -> Print a message [MESSAGE] -> You killed the orc, it is dead.
jaynabonne
19 Jan 2014 23:22
Since kill is a verb, you can just add a verb to the object you want to kill and then implement it either with a message or script.
For example, add a "monster" object to your game. Then click on monster and go to "verbs". Click "Add" and enter "kill" for the name. Then you have choices of printing a message, running a script, etc. which will occur when you type "kill monster". You can make the script do whatever you like.