Asylumer, again I can't thank you enough for your help. I'm at the office right now and can't do much, but after a good night's sleep and looking at this again I have a guess as to what might be causing the amount of caps to be off. But as you've probably already figured out, I'm an absolute noob with scripting. I'm just beginning to scratch the surface of learning how to read certain scripts and get a vague understanding of how they are working and what actually does what. But I'll admit I'm still struggling with the ability to actually write something that works like it should.
Anyway, I'll post up my script for you and maybe you can see why the caps are off or you can tell me if I'm correct in what I think might be the problem.
As I said earlier, the entire first part is working properly, and my message is popping up as it is supposed to. I'm wondering in the bits that add the proper amount of caps to the safe if I didn't need to have the “set GiveLoot to 0” after each level? Right now I have it like this:
if ( Player.GetLevel == 1 ) LuckyCasinoPlayerSafe.AddItem Caps001 100endif if ( Player.GetLevel == 2 ) LuckyCasinoPlayerSafe.AddItem Caps001 200endif if ( Player.GetLevel == 3 ) LuckyCasinoPlayerSafe.AddItem Caps001 300 ;this continues to level 30endifset GiveLoot to 0
Does just having the one “set GiveLoot to 0” at the end of all the levels do the trick, or do I need it in there for every level like so:
if ( Player.GetLevel == 1 ) LuckyCasinoPlayerSafe.AddItem Caps001 100 set GiveLoot to 0endif if ( Player.GetLevel == 2 ) LuckyCasinoPlayerSafe.AddItem Caps001 200 set GiveLoot to 0endif if ( Player.GetLevel == 3 ) LuckyCasinoPlayerSafe.AddItem Caps001 300 ;this continues to level 30 set GiveLoot to 0endif
BTW, I really like the idea about the message telling the player how much money they have waiting and your “integer” suggestion. But I may as well be writing Chinese as I basically can't write anything I don't have an example of to try and figure it out, lol. I'm not being lazy in the least as I've worked my azz off for over 2 months on this mod, I simply am having to learn every single thing I do as I do them because I've never ever done this before. If you want to take the time to add it in here's my full script minus all the levels to level 30.
Thanks again, and here's my script:
ScriptName LuckyCasinoSafeScriptshort LastCashDayshort GiveLootshort ActiveBEGIN GameModeif GetQC BucksGrandOpeningQuest ;only do this stuff if the quest is completed if (Active == 0) ;this will set all the variables up the first time the script can run set GiveLoot to 0 ;begins with no reward. Change to 1 for immediate gains. set LastCashDay to GameDaysPassed set Active to 1 endif if ( GameDaysPassed >= LastCashDay + 7 ) ;if a week has passed, make sure loot is added set GiveLoot to 1 ShowMessage LuckyCasinoDepositMessage ;working perfectly set LastCashDay to GameDaysPassed ;sets the timer endif if ( GiveLoot == 1) ;will run whenever the previous if block is true if ( Player.GetLevel == 1 ) LuckyCasinoPlayerSafe.AddItem Caps001 100 endif if ( Player.GetLevel == 2 ) LuckyCasinoPlayerSafe.AddItem Caps001 200 endif if ( Player.GetLevel == 3 ) LuckyCasinoPlayerSafe.AddItem Caps001 300 ;this continues to level 30 endif set GiveLoot to 0 ;resets the reward tracker ; DO STUFF HERE endif endifEND