How do I make an object appear mid-game?
Sir_Spamalot
06 Oct 2013, 19:20I want a character to drop an object after asking a question - the object is not previously visible How would I go about doing this? Please note that I am a complete newbie.
HegemonKhan
06 Oct 2013, 19:52To Drop:
for your Verb (such as maybe the "ask" Verb ~ the one you're using), add this script line~choice:
your Object (Object) -> your Verb (Tab) -> [Run as a script] -> Add a~new script -> Objects -> MoveObject -> (fill it in)
To make Visible:
for your Verb (such as maybe the "ask" Verb ~ the one you're using), add this script line~choice:
your Object (Object) -> your Verb (Tab) -> [Run as a script] -> Add a~new script -> Variables -> Set a variable or attribute ->
the_name_of_your_object_that_is_hidden.visible = true
you type in "the_name_of_your_object_that_is_hidden.visible" into the box to the left of the equal sign, and you type in "true" into the box to the right of the equal sign, but you do NOT type in the "=" sign, as it is already there from the window itself.
~OR~
for your Verb (such as maybe the "ask" Verb ~ the one you're using), add this script line~choice:
your Object (Object) -> your Verb (Tab) -> [Run as a script] -> Add a~new script -> Variables (I think ~ maybe its under the "Objects" scripts) -> SetObjectFlagOn ->
Object: the_name_of_your_object_that_is_hidden
Attribute: visible
// the quest engine will automatically set the Value (from "false") to "true", ie "on" (from the "SetObjectFlagOn" script name):
Value: true
// in code it is the same as above (the "set a variable or attribute" script):
Boolean (or true~false "Flag") Attribute:
Code Syntax: Object.Attribute=true_or_false
From: Object.visible=false // you don't type~add this in (as the object is already set as this: as being hidden), this is just for conceptual purpose only
To: Object.visible=true // this is what you'd type in, to make it visible
-----------
you may need to do (add) the "make_visible" script before ("have it above") the "move_to_drop" script, in order to do the drop.
for your Verb (such as maybe the "ask" Verb ~ the one you're using), add this script line~choice:
your Object (Object) -> your Verb (Tab) -> [Run as a script] -> Add a~new script -> Objects -> MoveObject -> (fill it in)
To make Visible:
for your Verb (such as maybe the "ask" Verb ~ the one you're using), add this script line~choice:
your Object (Object) -> your Verb (Tab) -> [Run as a script] -> Add a~new script -> Variables -> Set a variable or attribute ->
the_name_of_your_object_that_is_hidden.visible = true
you type in "the_name_of_your_object_that_is_hidden.visible" into the box to the left of the equal sign, and you type in "true" into the box to the right of the equal sign, but you do NOT type in the "=" sign, as it is already there from the window itself.
~OR~
for your Verb (such as maybe the "ask" Verb ~ the one you're using), add this script line~choice:
your Object (Object) -> your Verb (Tab) -> [Run as a script] -> Add a~new script -> Variables (I think ~ maybe its under the "Objects" scripts) -> SetObjectFlagOn ->
Object: the_name_of_your_object_that_is_hidden
Attribute: visible
// the quest engine will automatically set the Value (from "false") to "true", ie "on" (from the "SetObjectFlagOn" script name):
Value: true
// in code it is the same as above (the "set a variable or attribute" script):
Boolean (or true~false "Flag") Attribute:
Code Syntax: Object.Attribute=true_or_false
From: Object.visible=false // you don't type~add this in (as the object is already set as this: as being hidden), this is just for conceptual purpose only
To: Object.visible=true // this is what you'd type in, to make it visible
-----------
you may need to do (add) the "make_visible" script before ("have it above") the "move_to_drop" script, in order to do the drop.