BabyOxide Posted May 1, 2006 Share Posted May 1, 2006 i was modding and bump into two i now call it huge problems :P i made a mod and as simple as it is i want to make it perfect .. but i encounter two problemsone was worked around the other i'm stumped... first is can someone confirm that you cannot nest more then 3 removeitem command lest the game crashes. and two ... sorry if its trouble some but one you could try to get my mod >http://www.tessource.net/files/file.php?id=3814or two > er well huge and long right below .. apprently the last part >if mode2 != 1 partdoens't seem to be working i keep getting the same message displayed even if the requirement did not meet ? somehow .. rather annoying lol i can't seem to fix it cos i dunno what else to think :(be it 1 stat bonus or 2 stat bonus (base on my mod)the message displayed is the same... some one pls guide me :( Scriptname BoneMasterScript short randVal1short randVal2short randVal20short randVal21short randVal22short randVal23short randVal24short randVal25short randVal26short randVal27short randVal28short randVal29short randVal3short mode1short mode2short mode3short remtype Begin OnAdd Player If player.GetItemCount skull01 >= 10 || player.GetItemCount skelRibcage01 >= 10 || player.GetItemCount skelPelvis01 >= 10 || player.GetItemCount skelClavicle01 >= 10 || player.GetItemCount skelBoneThin01 >= 10 || player.GetItemCount skelBigBone01 >= 10 ;get percentage set randVal1 to GetRandomPercent set randVal20 to GetRandomPercent set randVal21 to GetRandomPercent set randVal22 to GetRandomPercent set randVal23 to GetRandomPercent set randVal24 to GetRandomPercent set randVal25 to GetRandomPercent set randVal26 to GetRandomPercent set randVal27 to GetRandomPercent set randVal28 to GetRandomPercent set randVal29 to GetRandomPercent set randVal3 to GetRandomPercent if randVal20 == randVal1 || randVal21 == randVal1 || randVal22 == randVal1 || randVal23 == randVal1 || randVal24 == randVal1 || randVal25 == randVal1 || randVal26 == randVal1 || randVal27 == randVal1 || randVal28 == randVal1 || randVal29 == randVal1 set mode2 to 1 endif if (randVal3 == randVal1) && (mode2 == 1) set mode3 to 1 endif ;get item activator, it will only delete one type of item If player.GetItemCount skull01 >= 10 set remtype to 1 endif If player.GetItemCount skelRibcage01 >= 10 set remtype to 2 endif If player.GetItemCount skelPelvis01 >= 10 set remtype to 3 endif If player.GetItemCount skelClavicle01 >= 10 set remtype to 4 endif If player.GetItemCount skelBoneThin01 >= 10 set remtype to 5 endif If player.GetItemCount skelBigBone01 >= 10 set remtype to 6 endif set randVal1 to GetRandomPercent set randVal2 to GetRandomPercent set randVal3 to GetRandomPercent if (randVal1 >= 0 && randVal1 < 13) ModPCAttribute Strength 1 endif if (randVal1 >= 13 && randVal1 < 26) ModPCAttribute Intelligence 1 endif if (randVal1 >= 26 && randVal1 < 39) ModPCAttribute Willpower 1 endif if (randVal1 >= 39 && randVal1 < 52) ModPCAttribute Agility 1 endif if (randVal1 >= 52 && randVal1 < 65) ModPCAttribute Speed 1 endif if (randVal1 >= 65 && randVal1 < 78) ModPCAttribute Endurance 1 endif if (randVal1 >= 78 && randVal1 < 91) ModPCAttribute Personality 1 endif if (randVal1 >= 91 && randVal1 <= 100) ModPCAttribute Luck 1 endif if mode2 == 1 if (randVal2 >= 0 && randVal2 < 13) ModPCAttribute Strength 1 endif if (randVal2 >= 13 && randVal2 < 26) ModPCAttribute Intelligence 1 endif if (randVal2 >= 26 && randVal2 < 39) ModPCAttribute Willpower 1 endif if (randVal2 >= 39 && randVal2 < 52) ModPCAttribute Agility 1 endif if (randVal2 >= 52 && randVal2 < 65) ModPCAttribute Speed 1 endif if (randVal2 >= 65 && randVal2 < 78) ModPCAttribute Endurance 1 endif if (randVal2 >= 78 && randVal2 < 91) ModPCAttribute Personality 1 endif if (randVal2 >= 91 && randVal2 <= 100) ModPCAttribute Luck 1 endif endif if mode3 == 1 if (randVal3 >= 0 && randVal3 < 13) ModPCAttribute Strength 1 endif if (randVal3 >= 13 && randVal3 < 26) ModPCAttribute Intelligence 1 endif if (randVal3 >= 26 && randVal3 < 39) ModPCAttribute Willpower 1 endif if (randVal3 >= 39 && randVal3 < 52) ModPCAttribute Agility 1 endif if (randVal3 >= 52 && randVal3 < 65) ModPCAttribute Speed 1 endif if (randVal3 >= 65 && randVal3 < 78) ModPCAttribute Endurance 1 endif if (randVal3 >= 78 && randVal3 < 91) ModPCAttribute Personality 1 endif if (randVal3 >= 91 && randVal3 <= 100) ModPCAttribute Luck 1 endif endif if remtype == 1 player.removeitem skull01 10 endif if remtype == 2 player.removeitem skelRibcage01 10 endif if remtype == 3 player.removeitem skelPelvis01 10 endif if remtype == 4 player.removeitem skelClavicle01 10 endif if remtype == 5 player.removeitem skelBoneThin01 10 endif if remtype == 6 player.removeitem skelBigBone01 10 endif if mode2 == 1 && mode3 != 1 message "The dark gods likes ye", 3 endif if mode2 == 1 && mode3 == 1 message "The dark gods loves ye", 3 endif if mode2 != 1 message "The dark gods blesses ye", 3 endif endifEnd Link to comment Share on other sites More sharing options...
BabyOxide Posted May 2, 2006 Author Share Posted May 2, 2006 i had the problem fixed.. apprently any shorts after remove item is nullified ... somone close this thread Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.