Guest Posted July 29, 2014 Posted July 29, 2014 Hello, So I am working on a NPC mod and I want the NPC to give the player repair services once every 24 hours. I got the repair part running through quest topics, but how could I add the condition to allow it only once every 24 hours? Is there like any Condition Function and Function Parameter for this or does this need to be script based? Any help is greatly appreciated.
Guest tomm434 Posted July 29, 2014 Posted July 29, 2014 You can tick "Say Once a day" in response options. You also have another, more sophisticated method with "GameDaysPassed" but if you have this topic only for 1 NPC, then use method above.
Guest Posted July 29, 2014 Posted July 29, 2014 Thank you very much, how could I have missed that . I probably will use "GameDaysPassed" aswell for something else. Something else; how could I allow it 3 times every 24 hours?. So for example I used all my times within 1 hour and now I have to wait 23 hours, before I could do it again?
Guest tomm434 Posted July 29, 2014 Posted July 29, 2014 ok. There you use GameDaysPassed. First you need to declart your own float variable. GameDaysPassed is a GlobalValue. you can find it in GECK in "Globals". It is constantly changing. So imagine that you are playing for the second GameDay and GameDaysPassed ==2.1 which means The second Day + 2.4 hours (24\10). So, every time player uses Repair feature, set your variable to "GameDaysPassed + value". Change value according to your will. Then in Dialogue topic condition you create a condition where you compare your quest var with global GameDaysPassed (tick "Use Global" in condition menu). Player will have topic visible when YourQuest.Yourvariable <=GameDaysPassed
Guest Posted July 29, 2014 Posted July 29, 2014 Thank you once again for this nifty solution. When I get home I will try to implement it in my mod.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.