Editing Script Compiler Override
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 172: | Line 172: | ||
int iCount | int iCount | ||
int iChoice | int iChoice | ||
int iCondition | |||
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 iCondition := Rand 0, 1 | ||
PlayerREF.AddItemHealthPercent rItem, 1, | PlayerREF.AddItemHealthPercent rItem, 1, iCondition | ||
End | End | ||
</pre> | </pre> |