script commands

GameBoy
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 ( [email protected](PLAYER ACCESS)$ >= 1 ) then disconnect < $id(player name)$>


ignore the whole [email protected](PLAYER ACCESS)$ thing.

paul_one
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...

[email protected]()$ isn't a function, so it shouldn't call correctly.

GameBoy
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.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums