I’d like to have certain objects be only obtainable by talking to a person about a certain topic, or giving them another certain object.
A person in the game starts off as wild, but when you bring her the package of chicken she ‘becomes’ tame and you can have her in your inventory and use her as a weapon.
This is the way I’ve coded it, but you can still take the tamed woman even if you haven’t given the wild one the chicken. I am well aware that I have set it up a bit weird. You give the wild woman the chicken, but a completely new ‘object’ comes into your inventory. This is because I needed to code the woman you get as a weapon you can use without the computer getting mad at me.
So, in short, how do you make an item accessible only when ask someone/give someone something particular?
[code]A woman called wild woman is here.
Instead of taking wild woman:
say “[one of]Best not to approach this strange creature, it looks hungry.[or]You should really think about every decision before you make it.[or]Come back later, when you are appropriately equipped.[at random]”.
Before giving package of chicken to wild woman:
move package of chicken to wild woman;
now the player has tamed woman;
say “You hand over the chicken, keeping it a sensible distance from the rest of your body. As soon as the creature has hold of the chicken, you let go. The wild woman swallows it in one go. ‘Ah, very nice. Right on, ta,’ says the wild woman. ‘I might as well come with you.’ You allow the creature to accompany you, but are unconvinced that it has bonded to you because of your kindness.”.
[the player acquired the chicken from another room, comes back, and can give it to the wild woman. stated below in different section of my game are the specifications for the tamed woman, as well as all the descriptions and definitions for damage and health and all that:[/code]
The tamed woman is a woman in Grassy Field. The damage of tamed woman is 20.