Jump to content

Crazyness In Mods


BabyOxide

Recommended Posts

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 problems

one 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=3814

or two >

 

er well huge and long right below ..

 

apprently the last part >

if mode2 != 1 part

doens'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 randVal1

short randVal2

short randVal20

short randVal21

short randVal22

short randVal23

short randVal24

short randVal25

short randVal26

short randVal27

short randVal28

short randVal29

short randVal3

short mode1

short mode2

short mode3

short 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

endif

End

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...