Newbie needs help with types, among other things

pink pineapple
19 May 2009, 22:50
Hey there,

I'm new on this forum, and the search function doesn't seem to help me (I get lots and lots of results, but it's hard to find a helpful comment in that mess), so I'm very sorry if my questions have already been answered somewhere (please don't eat me! :cry: ). I need help with the following:
1) How do I set a type for an object? I found the function to create types (in my case, the types are "day" and "night"), but I can't find a function to set them up or change them. I didn't see it in "variables", where the flags are, and the other function bars didn't look useful either.

2) I don't know if this is possible, but I would like to make one object temporarily disappear if another certain object is used on it. (For an example, let's say it this way: "Use water on candle" -> flame disappears -> flame can not be seen or interacted with for 10 seconds -> flame returns.) Is there a chance to do that, and if so, can you tell me how it's done? (I also would need detailed instructions for how to create a timer of that kind.)

3) How do I insert pictures? I tried an imageshack link as well as the name of the picture (it's saved under "My Documents", but since I didn't know how to direct to them, I just typed in the pic name, as in "picture.jpeg".

Please help me! :oops:

Thanatos
20 May 2009, 00:26
For question 3 the image has to be in the exact same directory as your Quest game. Eg, if "Bob.jpg" is saved into your My Doc, then your game "Bob.asl" has to be in My Doc too. Then you just put in the directory path into the little slot.

I can't help with question one because I don't use them, or question two because timers suck.

Thana

Freak
20 May 2009, 00:53
I think you're misunderstanding types; what are you trying to do with them?

Redsun
20 May 2009, 00:57
For question 2

You can make the flame of the candle reappear after a givin time by setting up a timer
and once the timer triggers it relights the candle.

Set the timer for 10 seconds
Once the player uses water on candle move object to another hidden room or change it's properties, both will work.

also once water is used turn on the timer.
Once the timer is triggered move object back to the room or change It's properties again.

pink pineapple
20 May 2009, 09:10
Thank you all for helping me out! :)
I'll give it a try and let you know whether it worked or not.

@Freak: I just wanted to use them to enable different responses to the same action without using flags. I got along with flags so far, but now there are so many of them that I wanted to try something else. For a start, I want the "look at bed" response to be "It's empty" in one case (="day") and to be "(name of person) seems to be fast asleep" in the other case (="night"). But yes, there's a chance that I misinterpreat some functions. :oops:

Redsun
20 May 2009, 10:16
for night and day cycles I usually write an entire day/week/month/year cycle that loops over and over.
then I write: Look at bed
if time 7 and
IF time2 PM then
"so and so is fast asleep"
ELSE
You see a nice comfy bed.

Thats just an example.

Make the if Statement so that anything over 7 PM till 6 AM he'll be fast asleep, or whatever times you like.

Freak
20 May 2009, 13:12
Suppose you have a number of similar objects. (For example, if you're making an RPG, all the weapons might have common "wield" and "unwield" actions, and maybe some other common parts.) You could put the common parts into a type and have all weapons inherit that type.

pink pineapple
22 May 2009, 17:17
Hi,

me again. I'm afraid I still don't get the trick with the timer-candle thingy and the day vs night mode. :oops:
Could anybody please rephrase the instructions on how to do it right for me? Especially the timer setting is a problem for me; the time mode I could handle with another flag if necessary. So please, just describe it to me as you would to a complete idiot, step by step: Where and how do I set a timer to return the flame of the candle, what do I need to click and what do I need to write? Maybe I'm just stupid, or maybe my English is not good enough, but I don't get it right on my own. :(

@Thanatos: The pictures work now, thanks again for your help!

Redsun
23 May 2009, 00:37
If nobody helps you by later tonight I'll help you once I get more time.
Your not stupid, Your just learning Quest, nothing wrong with asking questions.