Add condition to cooking recipe

Post » Wed Jun 20, 2012 12:52 am

Hi.

I know that the crafting recipes can have conditions like "Must have perk 'elven-crafting'".

I want to add a similar condition for my food cooking recipe:
I want the player to have to read the recipe paper before he/she can cook my recipe. -Is this possible and how?

Thanks.
User avatar
hannah sillery
 
Posts: 3354
Joined: Sun Nov 26, 2006 3:13 pm

Post » Wed Jun 20, 2012 5:37 am

Pehaps adding a script to your recipe, and use the flag "conditional" on your script and create a condition function.

http://www.creationkit.com/Flag_Reference
User avatar
Andres Lechuga
 
Posts: 3406
Joined: Sun Aug 12, 2007 8:47 pm

Post » Wed Jun 20, 2012 4:06 am

Either that (though I haven't got that to work myself yet) or create a global variable that get's changed by a script attached to your recipe paper in the OnRead() event. Then in the condition for the recipe test for the value of your global variable.
User avatar
Project
 
Posts: 3490
Joined: Fri May 04, 2007 7:58 am

Post » Wed Jun 20, 2012 2:16 pm

I don't know how to do this.
I double click on my recipe. I click "New" on the "Match Conditions". The "condition function" says "GetIsID" - what do I change this to?
I was hoping for something like "IsRead", but I can't seem to find it.


EDIT: Oh wait. I got it now.
I used the global variable check. It works now.
Thanks. =)
User avatar
Sandeep Khatkar
 
Posts: 3364
Joined: Wed Jul 18, 2007 11:02 am


Return to V - Skyrim