script commands

GameBoy
02 Aug 2005, 04:52
I'm just reading over the ASL document, and I was wondering if you could add something like this....

	startscript {
set string <fromroom; >
set string <toroom; >
}
command </destroy #fromroom#;#toroom#> destroy exit <#fromroom#; #toroom#>


you can specify the exist room names in the script, but can they be 'dynamic'?


I was also wondering if this was possible....

	command </kick $id(player name)$> if ( $@id(PLAYER ACCESS)$ >= 1 ) then disconnect < $id(player name)$>


ignore the whole $@id(PLAYER ACCESS)$ thing.

paul_one
02 Aug 2005, 15:33
The last one would be:
command </kick #player#> disconnect <$id(#player#)$>


I don't think the @ is correct either. $id()$ just returns the "userid" (number) of the player with that name...

$@id()$ isn't a function, so it shouldn't call correctly.

GameBoy
04 Aug 2005, 17:56
yeah i used the player name function at random. each player is an object right? I think that's why it uses @. However, each player will have an access property. There will be 4 access levels though, any amount of players can have the same access number :) the higher the access, the more privilages? I dunno, i might make this into a library or something.