Main
Projects
Art
Music
Scripting
LiveJournal
Forum
Links
Random Item
by SilverWolf

This gives the player a random item. It's important to change the items to fit your game.


#Random item script - 

include, plotscr.hsd
include, GAME.hsi 

define script (1,randomitem,none) 

script, randomitem, begin 
variable(number) 
setvariable(number,random(1,5)) 
if (number==1) then (get item(1,1)) #Item 1 will appear in inventory 
if (number==2) then (get item(2,1)) # " 2 " " " " 
if (number==3) then (get item(3,1)) # etc. 
if (number==4) then (get item(4,1)) 
if (number==5) then (get item(5,1)) 
end 

Site layout (c)2000 Jennifer Raby. Used by permission.