Locked door problem

Started by Rölli, Wed 03/11/2004 15:34:10

Previous topic - Next topic

Rölli

I'm planning to make my own game, and before that I want to be able to do some basic things with AGS. In my game I think there wouldn't be excatly thing like this but it's so basics that I wanna know how it'll work. I can't find solution from tutorials or FAQ.
Can this be done by using hotspots and interactions, or does this need scripting?:

In the room there's a door. When player character tries to open(interact) the door, it's locked and it shows display message: "It's locked."
And when player uses a key which he has picked up earlier, it shows a message: "Now it'll open."Ã,  (this is the problem) And from now on the door opens when he interacts with it and that'll lead him to other room.

Sorry my english.Ã,  8)

Abisso

Maybe you can use this trick, but it has got some limits.

You can make a check, if the character has got the item (the key, in this cas) or not. If it's got the key, you make the door open, instead NO.

The limits are that the char must always keep the key, and that even if it doesnt use the key on the door, when he's got it in the inventory, that will open. But it's easier to do. You'll find easily the exact commands to do this.

Oh, another way!

You make the door as an object.
This one, when the char interacts, displays "You don't have the key!".
Instead, if you use the key on the door, you remove the object from the screen, and then you make another object appear (which you prepared before). The graphics of the two objects are the same (a door), and so, you can set the second one to always open when you interact with it.
With this method, you can also remove the key item from char's inventory, without compromising the functionality of the door.

I hope i've explained quite well the 2 methods, if not, tell me, please.

Bye

Rölli

#2
Totta helvetissä oon Suomesta!
TRANSLATION:
Hell yea I'm from Finland!

Thank you very much. I think I can solve it now...Ã,  ;D

One thing...
Is there any possibility to write Ö-letter into my game, into displays and dialogs?
In my game character "Rölli" is in very important role and it's pretty stupid write it as "Rolli".
And all the finnish people:
It's not a children's game, it's much more scary than it sounds...

Ashen

I think you have to import a font with the characters you need (Ö and ö for example). There used to be some around, but with the forums as they are....
However, you can import any Windows font (.ttf), or you could edit one of these AGS fonts using Radiant's font editor.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk