I want to right a cog to make sure the player has found the lightsaber before they leave a sector can anyone help
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
symbols
symbols
thing player local
end
#--------------------------------------------
code
player=GetLocalPlayerThing
has_saber=GetInv(player,10)
if (has_saber==1)
{
something for a sector, I dont know any sector verbs...
}
endsymbols
message startup
message exited
thing player local
sector saber_sector linkid=1
end
#---------------------------------------
code
startup:
player = GetLocalPlayerThing();
return;
exited:
has_saber = GetInv(player,10)
if (has_saber == 0)
{ //....Put code here for player without saber
return;
}
return;
end