Son of Ra, Brother of Poseidon > I am coding a less powerful version of the teleport spell that will take > you to a random room in the zone that you are in. I've seen things like: > > zone = world[ch->in_room].number; > to_room = number((zone * 100), (zone * 100) + 99); > also note: each zone has a variable called top which lists the top room in each zone. so you would have to_room = number((zone*100), world[ch->in_room].top) or something like that.(cant remember the actual syntax right off hand) +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST