How do you make it so that after selecting an option in a conversation you get an item? And then how do you make it so that you can't have two at the same time?
CLARIFY:
What I want to do is when a specific choice is taken in a conversation, the player receives an item.
^Situation^
Person is looting a corpse and finds a key.
Then at the door when he uses said key it gets used up after reaching the other side of the door.
^Situation^
Key breaks.
Conversation: Need some scripting help.
-
ChikenKannon
- Dasarian Hero
- Posts: 1268
- Joined: Tue Nov 14, 2006 10:34 am
- Main Player Character: ------
- Other PCs: Haven't touched these in ages:
Lok'Tok
Lorne Mearesworth
Mars Benedict
Cpl John Mackev
Gutsnikk
Lorne Xavier Sunderson Falderhouse Skulltickler Mearesworth
Oronar - Location: Somewhere over the rainbow
It's nearly bed time for me and I'm too tired to be of much use right now x.x; Sorry!
Basically, you need two scripts!
One a conditional, which makes sure the same player can't access the same conversation route twice, the other an action, which checks the player for keys and gives the player a key if he hasn't got one.
A more clumsy, though definitely more simple way of doing it is to simply script the door so that it removes all instances of the key from the player's inventory when they unlock the door, thus rendering dropping the key and talking again to recieve extra keys fruitless.
Basically, you need two scripts!
One a conditional, which makes sure the same player can't access the same conversation route twice, the other an action, which checks the player for keys and gives the player a key if he hasn't got one.
A more clumsy, though definitely more simple way of doing it is to simply script the door so that it removes all instances of the key from the player's inventory when they unlock the door, thus rendering dropping the key and talking again to recieve extra keys fruitless.
Fat little moth.