This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "Random But Persistent Objects"

Jump to navigation Jump to search
152 bytes removed ,  22:09, 20 June 2011
Optimized script a bit
imported>Wrye
imported>Morerunes
(Optimized script a bit)
 
Line 24: Line 24:


Begin GameMode
Begin GameMode
    if doOnceGetClothes == 0
          set pantsPercent to getRandomPercent
          set shirtPercent to getRandomPercent
          set shoesPercent to getRandomPercent
          if pantsPercent < 25
              addItem LowerPants04 1
              equipItem LowerPants04
          elseif pantsPercent < 50
              addItem LowerPants05 1
              equipItem LowerPants05
          elseif pantsPercent < 75
      addItem LowerPants07 1
      equipItem LowerPants07
  else
      addItem LowerPants08 1
      equipItem LowerPants08
          endif
        ;and so on for shirt and shoes
if doOnceGetClothes == 1
return
endif
 
set pantsPercent to GetRandomPercent
set shirtPercent to GetRandomPercent
set shoesPercent to GetRandomPercent
 
if pantsPercent < 25
AddItem LowerPants04 1
EquipItem LowerPants04
elseif pantsPercent < 50
AddItem LowerPants05 1
EquipItem LowerPants05
elseif pantsPercent < 75
AddItem LowerPants07 1
EquipItem LowerPants07
else
AddItem LowerPants08 1
EquipItem LowerPants08
endif
 
;and so on for shirt and shoes
 
set doOnceGetClothes to 1
set doOnceGetClothes to 1
    endif
End GameMode
End GameMode
</pre>
</pre>
Anonymous user

Navigation menu