Craytose Posted May 16, 2012 Share Posted May 16, 2012 (edited) Ok, I need to have my blood decal lifetime go to 0 when I'm in interiors. And then set it back to 120 seconds when I'm not in interiors. First off, I'm not sure if it needs to be an object, quest, or magic effect script. I just want my mod to run the command console line "setini "fDecalLifetime:Display" 0.0000 and then the same thing but with a 120.0000 .... What am I doing and/or understanding wrong, here's what I have: Begin OnStartCombat player If ( Player.IsInInterior == 1 ) setini "fDecalLifetime:Display" 0.0000 ElseIf ( Player.IsInInterior == 0 ) setini "fDecalLifetime:Display" 120.0000 EndIfEnd If you're wondering why I need to do this, I have a few other posts about requesting a blood mod because of my interior flickering. Edited May 16, 2012 by Craytose Link to comment Share on other sites More sharing options...
Craytose Posted May 16, 2012 Author Share Posted May 16, 2012 Well I typed it all indented, guess the site fixes that. Link to comment Share on other sites More sharing options...
Lanceor Posted May 16, 2012 Share Posted May 16, 2012 A couple of problems with that script... Unless I am mistaken, SetIni is a console function that doesn't work in scripts. There is an OBSE function that replicates it though: con_SetINISetting. The Begin OnStartCombat block should be attached to an NPC - it runs only when that particular NPC starts combat (and if you include the parameter player, then only when that NPC starts combat with the player). Probably not what you need. Instead, use Begin GameMode. GameMode blocks can either be attached to an item (which makes it run every frame) or a Quest (which defaults as once every 5 seconds, but this can be changed). I'd say for your needs, a quest script would be better and updating every 5 seconds should be frequent enough. Create a dummy quest, set it to Start Game Enabled and assign your script to it and it should check and update your ini settings every 5 seconds. :) Link to comment Share on other sites More sharing options...
Craytose Posted May 16, 2012 Author Share Posted May 16, 2012 I am going to give that a shot, but I think I might have it here in OBMM first, if I can just figure out what the OBMM argument for "Player.IsInInterior" is. Link to comment Share on other sites More sharing options...
Craytose Posted May 16, 2012 Author Share Posted May 16, 2012 Thank you! Got it made! Now at least I can play the game halfway immersive till someone actually tries to write that blood mod that I was asking about. You're the only person on the forums to reply to me and my problems with this, I really appreciate it, not only that but you helped me at least get this script working for what I guess is "technically" my first ever own personal mod I made :thumbsup: Link to comment Share on other sites More sharing options...
Lanceor Posted May 16, 2012 Share Posted May 16, 2012 Congrats on your first mod! You found a workaround (blood decal lifetime) to a problem that no-one seems to know how to fix (shimmering blood). You taught yourself how to do some scripting and got it working. That shows resourcefulness. :thumbsup: Link to comment Share on other sites More sharing options...
Craytose Posted May 16, 2012 Author Share Posted May 16, 2012 Just thought you should know, since I wouldn't have got the script correct w/o you, I listed you in the credits section for helping me out. Link to comment Share on other sites More sharing options...
Recommended Posts