Re: Lambda Documentation

then its not correct syntax lol. MOO won't take it if it has anything wrong with it, and even when it does, it still might traceback when you run it, you'll have to get all the bugs out etc. DO lots of input validation on your top level verbs, and use internals to do all the work.

like let's say you wanted to make a spin off of a #8 a generic containre, you wanted a locker that could lock to a player. first you need to test a few things, like if the thing calling the lock or unlock verb is actually a player, if its not, it can be assumed to be another verb, which you might not want, so the test if(is_player(caller)) is a good way to do that. Secondly, you might want to test that the person is in the same room as you. Sometimes the cores block players from seeing objnums, but just to be safe, so they can't trigger stuff remotely, you could do if (this.location == player.location || this in player.contents) or something to that effect to see if you're holding whatever it is or if its in the room with you.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : hurstseth405 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : hurstseth405 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ironcross32 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : hurstseth405 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Draq via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : hurstseth405 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Lucas1853 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : hurstseth405 via Audiogames-reflector

Reply via email to