Giving player a inventory item when he talks

Started by , Sun 22/02/2004 16:32:35

Previous topic - Next topic

Rd27

I want to make one part of my game like this:

If the player has a correct inventory item (let´s say key:)), then when he talks to the character that wants that key, there comes a new option where the player can tell, that he has the key. And then he gives the key to the character and got a new item for change.

How can I do this?

Is there anywhere help, how can I make intro to my game, and outro when the game is played through.

Sorry for bad english.

Ytterbium

#1
When the player picks up the key, use either the Interaction Editor Option "Game - Enable Dialog Option" and set it to the topic number that the player uses to talk to the key seeking character, and the option which involves giving the key. Or you could use the script command SetDialogOption(t, o, 1), where "t" is the topic number and "o" is the option number. Leave the 1 there, as it enables the option. Now go to the topic, and make sure the option that the player chooses to give the character the key has its "Show" box unchecked. Now edit the dialog script. Under the topic, add the conversation, then after it, type this:

lose-inv x

where "x" is the inventory item number for the key.

Hope this helps.

Currently in production: Septigon

Rd27


SMF spam blocked by CleanTalk