command <groom> {
msg <|you groomed the dog.|xb|n>
set <groomed; %groomed% + 1>
if ( #type# = norm ) then if( #pcolor# = red) then picture <rgroom.bmp>
then if( #pcolor# = green) then picture <ggroom.bmp>
then if( #pcolor# = blue) then picture <bgroom.bmp>
then if( #pcolor# = yellow) then picture <ygroom.bmp>
then if( #pcolor# = purple) then picture <pgroom.bmp>
then if( #pcolor# = orange) then picture <ogroom.bmp>
if ( #type# = spike ) then if( #pcolor# = red) then picture <rsgroom.bmp>
then if( #pcolor# = green) then picture <gsgroom.bmp>
then if( #pcolor# = blue) then picture <bsgroom.bmp>
then if( #pcolor# = yellow) then picture <ysgroom.bmp>
then if( #pcolor# = purple) then picture <psgroom.bmp>
then if( #pcolor# = orange) then picture <osgroom.bmp>
}
command <groom> {
msg <|you groomed the dog.|xb|n>
set <groomed; %groomed% + 1>
' Use this code if type is NORM....
if ( #type# = norm ) then {
if ( #pcolor# = red) then picture <rgroom.bmp>
if ( #pcolor# = green) then picture <ggroom.bmp>
if ( #pcolor# = blue) then picture <bgroom.bmp>
if ( #pcolor# = yellow) then picture <ygroom.bmp>
if ( #pcolor# = purple) then picture <pgroom.bmp>
if ( #pcolor# = orange) then picture <ogroom.bmp>
}
'Use this code if type is SPIKE...
if ( #type# = spike ) then {
if( #pcolor# = red) then picture <rsgroom.bmp>
if( #pcolor# = green) then picture <gsgroom.bmp>
if( #pcolor# = blue) then picture <bsgroom.bmp>
if( #pcolor# = yellow) then picture <ysgroom.bmp>
if( #pcolor# = purple) then picture <psgroom.bmp>
if( #pcolor# = orange) then picture <osgroom.bmp>
}
}
command <groom> {
msg <|you groomed the dog.|xb|n>
'norm type
if ( #type# = norm ) then {
if ( #pcolor# = red) then picture <rgroom.bmp>
if ( #pcolor# = green) then picture <ggroom.bmp>
if ( #pcolor# = blue) then picture <bgroom.bmp>
if ( #pcolor# = yellow) then picture <ygroom.bmp>
if ( #pcolor# = purple) then picture <pgroom.bmp>
if ( #pcolor# = orange) then picture <ogroom.bmp>
}
'spike type
if ( #type# = spike ) then {
if( #pcolor# = red) then picture <rsgroom.bmp>
if( #pcolor# = green) then picture <gsgroom.bmp>
if( #pcolor# = blue) then picture <bsgroom.bmp>
if( #pcolor# = yellow) then picture <ysgroom.bmp>
if( #pcolor# = purple) then picture <psgroom.bmp>
if( #pcolor# = orange) then picture <osgroom.bmp>
}
}repeat until (#enstat#=dead) { do <battle> }Anonymous wrote:
You can add anything you like to the commands it is possible to use an on object. Look under 'user commands' in the online docs for how to do this.
alright, I figured out the image display one, it was that I missed the spaces in the spike type conditional. Can I change(not add) the commands so that instead of look its something like drink, or whatever?
and where are the online docs?
I'm also trying to figure out how to set "take" to something different, like steal, maybe.
Indeed changing the interface is not possible, though it may eventually be a feature I add