Player recieves daily income.

Post » Fri May 27, 2011 7:53 am

I have an Inn that i want to make the player buy, now that part is easy. But how would i make it that when the player owns the inn, that at the end of every day the player recieves a small payment in gold that is like the days income for the Inn.
Thanks.
User avatar
Susan
 
Posts: 3536
Joined: Sun Jun 25, 2006 2:46 am

Post » Fri May 27, 2011 2:29 am

Declare a variable to track the passage of time (just in case the player doesn't visit his inn every day), then have the NPC there giving him the gold * amount of days passed.

Pretty easy.

You may want to look at Integration's art gallery, which does something similar (albeit a bit more sophisticated).
User avatar
Alexx Peace
 
Posts: 3432
Joined: Thu Jul 20, 2006 5:55 pm

Post » Fri May 27, 2011 6:14 am

I'm not sure if this'll work but you might as well give it a try

Begin gamemodegetis player.getownership  == 1&& gamehour == player.additem gold Endifend


Might as well see if it works, I can't because the computer i'm working on atm doesn't support CS. :dancing::dancing::dancing:
User avatar
JAY
 
Posts: 3433
Joined: Fri Sep 14, 2007 6:17 am


Return to IV - Oblivion