Code:
symbols
thing player local
thing door
thing ghost
int randsky local
material box=stroombox.mat local
message activated
message trigger
end
code
activated:
door == GetSenderRef();
player == GetSourceRef();
SendTrigger(-1, 56789123, player, 0, 0, 0);
TeleportThing(player,ghost);
Return;
trigger:
if(GetSourceRef() == 56789123)
{
randsky == (Rand()*10);
If(randsky > 5)
{randsky == (randsky - 5);}
SetMaterialCel(box,randsky);
}
Return;
endWhen activated, this is sposed to change a material to a random cell between 1 and 5. but it wont change the cell
![http://forums.massassi.net/html/confused.gif [http://forums.massassi.net/html/confused.gif]](http://forums.massassi.net/html/confused.gif)
Whats wrong? Oh, you can ignore the teleport stuff, that works fine..
[This message has been edited by Shred18 (edited February 01, 2002).]
