Morilibus Posted January 3, 2011 Share Posted January 3, 2011 (edited) Issue Resolved I was able to get a hold of the mod creater Omar and he was nice enough to clued me in that it could be the version of OBSE which was preventing me from modifying the script. Sure enough, using V0011 did the trick. Just in case some one else is looking to do the same thing. first off I know nothing on how to script, and very little on making mods. I can usually tinker with other mods ok, like changing an enchantment ect. I can sort of see what scripts are doing, but know nothing of the language... So my problem is with the mod Spell Deflection. It allows to bounce spells back at your attacker. like the reflect spell, only you need to be blocking and your stats determine if you'll successfully do it. However this mods seems to be hard coded to use the Right Mouse Button, and I'm trying to change that as I don't use that for block. here is my reply in the mods topic, but it's not getting too much action I have a problem as this seems to be hard coded to the right mouse button. I don't use that button for block(actually use it to move right) so the only way I can get this to reflect is if I'm blocking and moving right(holding down that mouse button). If I just block(for me its a thumb mouse button it doesn't reflect and no transparency. I'm going to see if I can change myself in CS but I don't know much about modding and I'm guessing its attached to a script, or vice versa... ok I found this in the script SpellDeflectionCollisionMeshQuestScript if Player.IsShieldOut == 1 ;check if player is blocking Set blockKey to GetControl 6 if ( IsKeyPressed2 blockKey ) || ( IsKeyPressed2 257 ) Set isBlocking to 1 Player.SetActorAlpha alphaValue else Set isBlocking to 0 Player.SetActorAlpha 1.0 endif endif I'm guessing if I change that to the number of the button I use for block that should do the trick? [edit]ok it won't let me save the script if I try to change that number, gives me a "syntax error, unknown command iskeypressed" any thoughts on how to get this working? I have a razer mouse and it has its own configuration utility, but it doesn't seem to matter what I designate the mouse buttons to in windows, in game there always referenced to the same numeric value. [Edit2}Man I sure do like having conversations with myself on these forums. Ok found in another post related to syntax error and obse, now I have obse v19.6, however I did not know to load up the cs editor using obse. So now I've done that and am again trying to change that value from 257 to 260, and now I'm getting this error from OBSE invalid begin/end block structure on line 95 this is line 95: elseif isBlocking && SpellDeflectionEffectQuest.stage == 0 && isCasting == 0 && success Edited January 3, 2011 by Morilibus Link to comment Share on other sites More sharing options...
Recommended Posts