rank script - early trial for stim
Posted: Sat Oct 25, 2008 11:50 pm
very early attempt at it. this is set up so that the only way to gain a rank is to kill somebody that is a higher rank. however, there will need to be a high ranking person (like the world owner) to start it off.
this script will use rank as $playervar64
$playervar63 is used as a temporary var storage for the battle opponent.
entire script is based around the killer
replace the word 'RANK' with the rank desired. its easy to copy and paste the rank statements to add or remove ranks.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(a line to widen the topic)
this script will use rank as $playervar64
$playervar63 is used as a temporary var storage for the battle opponent.
entire script is based around the killer
replace the word 'RANK' with the rank desired. its easy to copy and paste the rank statements to add or remove ranks.
Code: Select all
event( "playerdeath", 0 )
{
*setplayervar %killer% 63 $playervar64
PlayerVars(%killer%)
if ($playervar63 > $playervar64)
{
$playervar64=$playervar64+1
*say %player% has gone up a rank!
if ($playervar64 = 0)
{
*say %player% is now a RANK
}
else if ($playervar64 = 1)
{
*say %player% is now a RANK
}
else if ($playervar64 = 2)
{
*say %player% is now a RANK
}
else if ($playervar64 = 3)
{
*say %player% is now a RANK
}
else if ($playervar64 = 4)
{
*say %player% is now a RANK
}
else
{
*msg %player% Your at the max rank of RANK
}
}
else if ($playervar63 = $playervar64)
{
*msg %player% He was the same rank as you.
*msg %player% You need to kill somebody thats a higher rank then you in order to advance in rank.
}
else
{
*msg %player% He was a lower rank then you.
*msg %player% You need to kill somebody thats a higher rank then you in order to advance in rank.
}
(a line to widen the topic)