novaprime1 Posted September 9, 2006 Share Posted September 9, 2006 Hello everyone I am new to the forums and modding in general, i am working on a mod at the moment.Could someone make me a script that will make a piece of equipment deteriorate in the sunlight? Thank you,Idaf Link to comment Share on other sites More sharing options...
SerpentofShadow Posted September 9, 2006 Share Posted September 9, 2006 Hello everyone I am new to the forums and modding in general, i am working on a mod at the moment.Could someone make me a script that will make a piece of equipment deteriorate in the sunlight? Thank you,Idaf I don't recall there being a function that can directly damage a piece of equipment. If there is this could be a rather tricky script. My vote would be to hope that Vagrant0 replies, he's one of the better scripters on the forum. The script would have to be attached to the armor piece first off. Then you would need to get the time of day and amount of sunlight. Time of day isn't hard, don't know about sunlight amount/current weather. Then obviously the damage to the equipment. I just hope you are not looking for a visual deterioration as well (more then an effect shader). Link to comment Share on other sites More sharing options...
Povuholo Posted September 9, 2006 Share Posted September 9, 2006 Hello everyone I am new to the forums and modding in general, i am working on a mod at the moment.Could someone make me a script that will make a piece of equipment deteriorate in the sunlight? Thank you,Idaf I don't recall there being a function that can directly damage a piece of equipment. If there is this could be a rather tricky script. My vote would be to hope that Vagrant0 replies, he's one of the better scripters on the forum. The script would have to be attached to the armor piece first off. Then you would need to get the time of day and amount of sunlight. Time of day isn't hard, don't know about sunlight amount/current weather. Then obviously the damage to the equipment. I just hope you are not looking for a visual deterioration as well (more then an effect shader). Yes let's wait for Vagranto ;) I can think of something that could be put in the script, but not the script itself. A check for what time of the day it is (GetCurrentTime? That only works for a short moment I think), maybe a weather check (GetIsCurrentWeather WeatherID ). And if both conditions are true, a desintegrate spell could be cast at the player (Cast YourDesintegrateArmorspell Player). This will damage all the armor pieces, unfortunately. And the visual deterioration (that should be on my top 10 most hated words) would be very hard to pull of. Probably needs new textures. A shader would be better. ("PlayMagicShaderVisuals effectDisintegrateArmor X" And X is the duration.) I don't know if that is necessary, maybe the spell shows the effects already. Now let's hope Vagrant0 or someone else shows up and sticks it together in a script. ;) Link to comment Share on other sites More sharing options...
Vagrant0 Posted September 9, 2006 Share Posted September 9, 2006 Wow, so much faith... Yeah, Povuholo is on the right track for how to make it detect, for sunlight... Unless you happen to be a vampire, then it becomes alot easier. The problem is the effect. I think you can lower the durability of equipment through scripting by using some of the functions in the Oblivion Script Extender, but since it isn't an official thing, and would probably be prone to some problems here and there, it may not be such a good idea. The real question is what kind of effect you want on the armor durring the day. If you wanted the armor to crumble to dust (IE adamantium from BG2) when exposed to daylight, it's really just a matter of setting up the conditions right, then having the script replace the armor with a pile of dust. Making it change into another set of armor (one that's falling apart (provided you get someone to do textures/meshes)) would work similarly, but might have to be equipped after it's added. The problem with this is that you still end up with the notifications of items being added/removed from your inventory. So having something where this happens often could be rather annoying. Link to comment Share on other sites More sharing options...
novaprime1 Posted September 9, 2006 Author Share Posted September 9, 2006 Just to clarify, i do not need it to deteriorate visually. Say i have a peice of armor, if i wear that piece of armor into the sunlight, i need it to have its health go down by 1 per second Link to comment Share on other sites More sharing options...
Vagrant0 Posted September 9, 2006 Share Posted September 9, 2006 Just to clarify, i do not need it to deteriorate visually. Say i have a peice of armor, if i wear that piece of armor into the sunlight, i need it to have its health go down by 1 per second You can't do anything like that. There is no stanrard scripting function that allows reading/changing of inventory values. While the OBSE does have a function for reading those values, there isn't any way currently to change them. Link to comment Share on other sites More sharing options...
novaprime1 Posted September 9, 2006 Author Share Posted September 9, 2006 Just to clarify, i do not need it to deteriorate visually. Say i have a peice of armor, if i wear that piece of armor into the sunlight, i need it to have its health go down by 1 per second You can't do anything like that. There is no stanrard scripting function that allows reading/changing of inventory values. While the OBSE does have a function for reading those values, there isn't any way currently to change them. Oh, ok Thanks anyway,Idaf Link to comment Share on other sites More sharing options...
GBHis Posted September 10, 2006 Share Posted September 10, 2006 Might be possible... I love these words :)Having an external counter variable, a flag variable set onEquip, and a remove quest-script that replaced it with a pile of crap when down.I would enjoy writing it (needs lot of creativity), but I don't have the time... Sorry. PS: Vagrant0 is prolly' the only person who understood this. Poor english, and lots of technical words :( Link to comment Share on other sites More sharing options...
Vagrant0 Posted September 11, 2006 Share Posted September 11, 2006 Might be possible... I love these words :)Having an external counter variable, a flag variable set onEquip, and a remove quest-script that replaced it with a pile of crap when down.I would enjoy writing it (needs lot of creativity), but I don't have the time... Sorry. PS: Vagrant0 is prolly' the only person who understood this. Poor english, and lots of technical words :(yes, and I was thinking the same thing before... But he wants it to degrade the health of the armor, not replace it with something else. If he wanted to replace it with something else, that is probably the easiest way to go. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.