###############################################################################
#      Macro stuff
###############################################################################
#Standard:
#
#%a      armies carried by sender
#%d      sender damage percentage
#%s      sender shield percentage
#%f      sender fuel percentage
#%w      sender wtemp percentage
#%e      sender etemp percentage
#%t      team id character of target planet
#%T      team id character of sender team
#%c      sender id character
#%n      armies on target planet
#%E      1 if etemped, 0 if not
#%W      1 if wtemped, 0 if not
#%S      sender two character ship type
#%p      id character of target player
#%g	id char of target friendly player
#%h	id char of target enemy player
#%P      id character of player nearest sender
#%G	id char of friendly player nearest sender
#%H	id char of enemy player nearest sender
#%l      three character name of target planet
#%i	sender full player name (16 character max)
#%u	full name of target player (16 character max)
#%z	3 letter team id of target planet
#%b      sender nearest planet
#%*	abort macro immediately, sending nothing
#% 	<space> sends nothing - allows macros to start with spaces
#%2	1 if on a paradise server, 0 otherwise
#
#FULLY CAPITALIZED:
#%L	three character name of target planet
#%I	sender full player name (16 character max)
#%U	full name of target player (16 character max)
#%Z	3 letter team id of target planet
#%B      sender nearest planet
#
#Ping stats: (may differ slightly from server '!' ping stats)
#%v    average ping stat round trip time
#%V    ping stat round trip standard deviation
#%y    percent total packet loss as calculated by server formula
#
#Miscellanous:
#%m      the last message you sent
#%M	the last message you sent in all caps
#
#As a further extension to NEWMACRO, a macro may now be sent
#to any of the following destinations:
#
#%i %I %c	send message to self
#%u %U %p	send message to player nearest mouse
#%t %z %Z	send message to team of player nearest mouse
#%g		send message to nearest friendly player to my ship
#%h		send message to nearest enemy player to my ship
#
#Further, tests may be done within the macro system, the syntax
#for these test is as follows.
#%?	introduces a test
#=	equivalence
#>	greater
#<	less
#
#Expressions are evaluated on a character by character basis until the
#test is resolved.  The text of the test is then replaced in the macro
#by 1 or 0.
#
#Test are then fed to a syntax I call conditional text.  The best way
#to demonstrate how this works is example.
#
#1%{included if true%!included if false%}
#
#This would print:
#included if true
#
#0%{included if true%!included if false%}
#included if false
#
# Paradise orthoganal macros (Robert Forsman)
#
#   start with a $
#
#   field 1:
#   (n)earest
#   (t)arget
#   (s)elf	(doesn't have fields 2 and 3)
#   (_) ego	(has no other fields)
#
#   field 2:
#   (a)ny
#   (t)eammate
#   (f)riendly
#   (h)ostile
#
#   field 3:
#   (a)ny
#   (u)ser
#   (p)lanet (includes asteroids)
#   (s)tar
#   (n)ebula
#   (b)lack hole
#   (^) non-planet
#   (*) any stellar object
#
#   field 4: (optional)		NYI
#   (U)ppercase
#   (C)apitalize
#   (L)owercase
#
#   field 5:
#   full (n)ame (Hammor, Thought)
#   (i)dentifier (e.g. R5, Ka, Can, Sco)
#   (#) number (0-9a-z for players, %d for planets)
#   (t)eam name (Romulan)
#   (s)hort team id (ROM)
#   (l)etter of team (R)
#   (a)rmies
#   (@) sector
#   (M) 0=not metal planet, 1=metal, 2=repair, 3=shipyard
#   (A) 0=not arable, 1=arable, 2=agri
#   (D) 0=not dilithium, 1=dilithium, 2=fuel
#
#   Any implementation of the paradise $ codes (subset or superset)
#   must implement and document the $_ code.      -- Robert Forsman
#start macros:

# new distresses
#singleMacro:    E
#mac.F.T:        %?%S=SB%{Your starbase (%i) is carrying %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%}%!%T%c@%B: I have %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%} on board, heading for %L%?%n<0%{ (untouched)%!@%n%}%}
#mac.F.T:        %?%S=SB%{Your starbase (%i) is carrying %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%}%!%T%c@%B: I have %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%} on board%}
#mac.Z.T:        Going for %L NOW!!  DET for me!! (%?%a=0%{NO%!%a%} %?%a=1%{army%!armies%})

#mac.T.T:	%T%c@%B(%S): Going for %L@%n with %a %?%a=1%{ogre%!ogres%}! DET! %L@%n
#mac.e.T:	%T%c@%B(%S): NEED ESCORT TO %L @ %n, Carrying %a %?%a=1%{ogre%!ogres%} DET for me!
#mac.E.T:        HELP! %T%c@%B(%S): , %d%% dam, %s%% shlds, %?%S=SB%{%!%?%f<15%{NO%!%f%%%} gas%} %E%{ETMP!!%} %?%S=SB%{%w%% wtmp%}%} %?%a>0%{%a %?%a=1%{army%!armies%}%} %W%{WTEMP!!%}

mac.@.A: %       __  _           _    _    _   _   _ _
mac.@.A: %      /// /X|         |X\  /X\  /X\ /X\ // \\
mac.@.A: % __  /// //||         ||\\//~\\//~\\\\~//___\\
mac.@.A: % \\\/// //_||MIGA     ||//\\_//\\_//_\\\\---//
mac.@.A: %  \XX/ //  ||(R.I.P.?)|X/  \X/  \X/ \X/ \\ //

#mac.o.T:	OGGING BASE NOW!!! $thuUi@%L
#mac.O.T:	OGG $thuUi@%L
##############################
mac.'.%i:	%n armies on %L
mac.m:		%m
mac.V:		%T%c PING stats: Round Trips: %v ms +/- %V ms, Loss: %y%%
mac.v:		%T%c PING stats: WORSE THAN YOURS!
##############################

# normal distress keys

#mac.E.T:        %T%c@%B(%S): HELP! %?%d>70%{HULL GONE! %!%?%d>35%{%d%% dam %}%}%?%s<10%{SHLDS OUT! %!%?%s<60%{%s%% shlds %}%}%?%f<50%{%?%f<15%{NO %!%f%% %}fuel! %}%E%{ETEMP! %}%W%{WTEMP! %}%?%a>0%{%a %?%a=1%{ogre%!ogres%}%}
#mac.F.T:        %?%S=SB%{Your starbase (%T%c) is carrying %?%a=1%{one smelly ogre%!%?%a=0%{NO%!%a%} ogres%}%!%T%c@%B(%S): %?%a=0%{no ogres on board!%!carrying %?%a=1%{one smelly ogre!%!%a vicious ogres!%}%}%}

#mac.k.T: %L! Get to %L NOW!
#mac.T.T: %S@%B: Going for %L @ %n with %a %?%a=1%{hungry ogre%!ferocious ogres%}! DET! %L!
#mac.t.T: %S@%B: Going for %L @ %n with %a %?%a=1%{hungry ogre%!ferocious ogres%}! DET! %L!
#mac.p.T: %S@%B: Going for %L @ %n with %a %?%a=1%{hungry ogre%!ferocious ogres%}! DET! %L!
#mac.p.T: I have %a amiga user%?%a=1%{%!s%} to bother %L @ %n. DET!

#dist.taking:  %T%c(%S) %B: Carrying %a to %L%?%n>-1%{ @ %n%}
#dist./.help:    %T%c(%S) %B: HELP! %d%% dmg, %s%% shd, %f%% fuel,%?%S=SB%{ %w%% wtmp,%!%}%E%{ ETEMP!%}%W%{ WTEMP!%} %a armies!
dist.help1:   %T%c(%S) %B: Help! %d%% dam, %s%% shd, %f%% fuel %a armies.
dist.help2:   %T%c(%S) %B: Help! %d%% dam, %s%% shd, %f%% fuel %a armies.


dist./.save_planet:     %i(%T%c): SAVE %L @ %n
dist...space_control:   %i(%T%c): Help control %L @ %n
#dist.E.help:            %T%c(%S) %B: HELP! %d%% dmg, %s%% shd, %f%% fuel,%?%S=SB%{ %w%% wtmp,%!%}%E%{ ETEMP!%}%W%{ WTEMP!%} %a armies!
dist.E.help:            %T%c(%S) %B: HELP! %?%d>90%{HULL GONE! %!%?%d>20%{%d%% dam %}%}%?%s<10%{SHLDS OUT! %!%?%s<80%{%s%% shd %}%}%?%f<10%{NO %!%f%% %}fuel %?%S=SB%{%w%%wtmp%}%E%{ETEMP! %}%W%{WTEMP! %}%?%a>0%{%a %?%a=1%{ogre%!ogres%}%}
dist.F.carrying:        %T%c(%S) %B: %?%S=SB%{Your starbase is %}carrying %a armies.
dist.+.pickup:          %i(%T%c): %p++ @ %l
dist.p.taking:          %T%c(%S) %B: Carrying %a to %l%?%n>-1%{ @ %n%}
dist.P.taking:		%T%c(%S) %B: Carrying %a to %l%?%n>-1%{ @ %n%}
dist.o.ogg:             %i(%T%c): Ogg %h @ %l
dist.b.base_ogg:        %i: ---------BASE OGG!!!! sync me(%c) and %g--------
dist.B.bomb:            %i(%T%c): bomb %?%n>4%{%l @ %n%!%?%n<0%{%l (untouched)%}
dist.^b.bomb:            %i(%T%c): bomb %?%n>4%{%l @ %n%!%?%n<0%{%l (untouched)%}
dist.e.escorting:       %T%c(%S) %B: ESCORTING %g (%d%%D %s%%S %f%%F%?%a>0%{%a armies%})
dist.c.crippled:        %i(%T%c): %p @ %l crippled

singlemacro: P^b
#singlemacro: +
#carrier+closest planet in yellow
lite.carrying:  %?%a>0%{/cy/by%}
#planet+closest enemy cyan
lite.space_control: /lc/hc
#planet+closest enemy red
lite.save_planet: /lr/hr
#player+cl. plan yellow
lite.pickup: /pr/ly
#oggee in green
lite.ogg: /hg
#taker, target in red
lite.taking: /cr/lr
#if SB, SB white, me cyan. else if armies, sender red, if no armies, sender grey
lite.help: %?%S=SB%{/cw/mc%!%?%a>0%{/cr%!/ce%}%}
#sender, closest to sender in green
lite.base_ogg: /cg/gg
#escort+taker in cyan
lite.escorting: /cc/pc
#crippled enemy in grey
lite.crippled: /he

Uselite:        off
playerCycleTime: 20
planetCycleTime: 20

#mac.C.T:	Clear %L NOW! $tapCn has %n armies on it.
#mac.B.T:	BOMB %L@%n
mac.A.T:	%L @ %n.
mac.1.T:	WARP 1! WARP ONE!  OGG BASE! IT'S AT WARP 1!
mac./.T:	Need help at %B NOW!
mac.S.T:        %T%c(%S): Help kill %h near %B

# to nearest team-mate
mac.f.%G:       I'm fine
mac.h.%G:       %d dmg, %s shld, %f fuel, %?%a=1%{army%!armies%}

mac.P.!:	status
mac.N.!:	dtelnet metaserver.ecst.csuchico.edu 3521
mac.x.!:	rx emacs para:.paradiserc
mac.W.!:	csh -c ntw

#singleMacro:	EF

