awesome! Well with my limited skills I managed to get it done...
The dialogue goes as follow with the chicken:
"cluck?"
Feed the chicken?
+ Yes
Onactiontaken- tab
void main()
{
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Take "cnrCornRaw" from the PC.
DestroyObject(GetItemPossessedBy(oPC, "cnrCornRaw"));
}
++ Chicken laid an egg!
Onactiontaken - tab
void main()
{
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Give "cnrchickenegg" to the PC.
CreateItemOnObject("cnrchickenegg", oPC);
}
- No
What I want to add...
Okay this is something I am a bit confused on how to do this (remember complete newb here but trying!) I would want to add a line that counts how many times you have given the chicken grain before it will lay an egg.
so for example you would need to feed the chicken like 6 pieces of grain before it will lay an egg.
any help would be awesome! '>