questions about scripting... random
Posted: Fri May 16, 2008 7:00 pm
can i script a usable item to give a random set of items or actions when used?
http://theuniversal.net/forumrestore/phpBB3/
http://theuniversal.net/forumrestore/phpBB3/viewtopic.php?t=7774
Code: Select all
Event( "useitem", "Used item" )
{
$action = Rand(10)
if ( $action = 4 )
{
*do whatever
}
else if ( $action = 5 )
{
*do whatever
}
}