Difference between revisions of "Script Compiler Override"
m
→A Warning About '1-Lining': missed bracket
imported>Odessa m (→Overview) |
imported>Odessa m (→A Warning About '1-Lining': missed bracket) |
||
(One intermediate revision by the same user not shown) | |||
Line 172: | Line 172: | ||
int iCount | int iCount | ||
int iChoice | int iChoice | ||
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 | let fCondition := Rand 0, 1 | ||
PlayerREF.AddItemHealthPercent rItem, 1, | 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> |