thecopy Posted September 20, 2009 Share Posted September 20, 2009 A mod that makes you able to put out or light a candle. :smile: Link to comment Share on other sites More sharing options...
Pronam Posted September 20, 2009 Share Posted September 20, 2009 That would require to replace all candles I guess. That sounds like a good idea though, as some people could stay hidden when the lights are out... Or is it for personal use in a house? As it would be far more easy to do then... Link to comment Share on other sites More sharing options...
thecopy Posted September 20, 2009 Author Share Posted September 20, 2009 I would like to put out the ligths when i go to bed for example, and light them in the morning. My character is not a sneaky kind so its for personal use i guess. But i dont own a house yet so i sleep in Inns so they must work too. Link to comment Share on other sites More sharing options...
grmblf Posted September 20, 2009 Share Posted September 20, 2009 That would be cool, but if used in public places you might need some NPC to light them at night so you're not running a script for every candle and torch. Anyway it's a good idea for stealthy characters and to give a bit more of realism. Link to comment Share on other sites More sharing options...
Pronam Posted September 20, 2009 Share Posted September 20, 2009 and light them in the morningHaha.. that sounds very strange when you think of it, but I get it. Owk, I might take it. But I want to be sure it isn't there already...--It seems that there isn't one...--The reason for that may be that the lights aren't always combined.That means the use of fake light..That's actually a good thing in a scripting perspective.The trouble is that it has a different setting at each place..So I can't replace them with a CS-Tool. Which means I have to manually change them all to replace them! So that leaves me with this question...Should I replace the lights in every inn.Or...use OBSE, to enable you to switch candles/lights wherever you are. (With a special spell)To permanently change them to one that could be turned on/off? Link to comment Share on other sites More sharing options...
grmblf Posted September 20, 2009 Share Posted September 20, 2009 I would like to put out the ligths when i go to bed for example, and light them in the morning. My character is not a sneaky kind so its for personal use i guess. But i dont own a house yet so i sleep in Inns so they must work too. well that's easier then, although I'm an absolute newbie at modding and I guess I'm not able to script it out yet I'll give it a try, maybe with a piece of code written it's easier for a master modder to show up and finnish it. Link to comment Share on other sites More sharing options...
grmblf Posted September 20, 2009 Share Posted September 20, 2009 damn my internet cionnection is working too slow today. Should I replace the lights in every inn.Or...use OBSE, to enable you to switch candles/lights wherever you are. why? cannot you directly replace the base object for certain candles and so, and simply attaching an onActivate script? Link to comment Share on other sites More sharing options...
Pronam Posted September 20, 2009 Share Posted September 20, 2009 Yes. you can :).. But that way you can replace it with the same candle.There are two types of lights Fake and Real The real deal can be found at lights, and can be set with a radius..etc..Then there are fake lights, that use a external light source (a light-bulb in CS).A good example is the Merchants Inn in the IC (I go there often myself.) The player-room uses a fake light.(Move the plate with candles in CS and notice that the lights remains unchanged.) If all lights were real lights, it would've been easy to use the Search and Replace tool.The problem is that the bulb and static (fake light) are totally seperate and not linked...So that means it wouldn't work...So yes you can replace the thing. But I guess they've fake lights to increase FPS. My idea was still to create the new lights with scripts (The normal lights just duplicated with (new)scripts The fake ones would be turned into activators), but to create a spell that will recognize the Lightsource in-game (OBSE needed for that...) and replace it with the replaced ones. --Wait, that still doesn't solve the thing! Hmm.. --Or I create a spell that deletes all light-sources in its spell-radius. But I've not idea if it would work.. ----But again towards the OP. Do you want it inside Inns..or something that enables you to change it everywhere?As just doing it for the inns could save a lot of work.. Although I like a challenge. Link to comment Share on other sites More sharing options...
grmblf Posted September 20, 2009 Share Posted September 20, 2009 I think I've got an approach for that if you can get a reference's base object in-game.2 different scripts, one for that candles with real light and another for these that doesn't shine. # real lights begin onActcheck base object to get the new one: if if if if or lists comparison if it's one with light we get the fake, or viceversaget object posdelete objectcreate new candle in posattach this script to itend # fake lights begin onActsearch nearest light spotdelete itdelete current candle and re-create it or simply unattach this current scriptattach first scriptend This way it's kinda we track wich ones has been added due to player activation and wich ones was already in place as we know wich script they trigger, so all they shine unless we put them out manually in-game. PS: Maybe I haven't made it clear enought. It's all about a list comparison where you have 3 correlative values corresponding to 3 different base objects representing the same candle. #1 is the candle wit own real light, #2 is the fake candle with fire but no light at all, and #3 is the same candle without fire nor light. So the first time you activate the script it switches the object from #1 to #3, or from #2 to #3. But once it's #3 (no fire no light), it doesn't come back to a fake candle (#2) when you attempt to light it, it turns to a normal candle that shines properly, so the fakes are getting removed from the game as you activate them. Link to comment Share on other sites More sharing options...
Pronam Posted September 20, 2009 Share Posted September 20, 2009 Indeed what I had in mind, it seems a lot more clear when you put it in that way ;D.--You want to get rid of the fake ones entirely? Or do you mean the ones that don't do anything at all.But that leaves you with a FPS-hit I guess....They made fake lights for a reason. (Although you might wonder why they haven't picked 1.) ---I understand your 1-2-3. Just making it possible to turn on every one of them. Even though they don't have a light src. Link to comment Share on other sites More sharing options...
Recommended Posts