Difference between revisions of "Script Compiler Override"

4 bytes added ,  09:53, 16 February 2015
m
imported>Odessa
imported>Odessa
 
(One intermediate revision by the same user not shown)
Line 172: Line 172:
int iCount
int iCount
int iChoice
int iChoice
int iCondition
float fCondition
ref rItem
ref rItem


Line 179: Line 179:
   let iChoice := Rand 0, iCount
   let iChoice := Rand 0, iCount
   let rItem := ListGetNthForm SomeFormList, iChoice
   let rItem := ListGetNthForm SomeFormList, iChoice
   let iCondition := Rand 0, 1
   let fCondition := Rand 0, 1
   PlayerREF.AddItemHealthPercent rItem, 1, iCondition
   PlayerREF.AddItemHealthPercent rItem, 1, fCondition
End
End
</pre>
</pre>
Line 187: Line 187:
<pre>
<pre>
Begin _GameMode
Begin _GameMode
     PlayerREF.AddItemHealthPercent (ListGetNthForm SomeFormList, (Rand 0, (ListGetCount SomeFormList), 1, (Rand 0, 1)
     PlayerREF.AddItemHealthPercent (ListGetNthForm SomeFormList, (Rand 0, (ListGetCount SomeFormList))), 1, (Rand 0, 1)
End
End
</pre>
</pre>
Anonymous user