;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; bat_nomad.tf ; ; ; ; Hair @ BatMUD ; ; ; ; If you browse through this file, you will see several lines ; ; similar to /SET cast_status=FIRE ; ; I use visual mode in tf, and this sets a variable on my status ; ; line to let me know what skill I am using. If you do not like this ; ; or do not use visual mode, it is save to comment out or delete ; ; those lines. ; ; ; ; Many thanks to Drifter for great ideas in my own ; ; triggers. Formattime, Checktime, delim and reporter ; ; pretty much stolen right from him :) ; ; Also, thanks to Ggr for the same. The Combat Damage Analysis ; ; section is pretty much a straigh ripoff from him. ; ; ; ; Set of handy nomad triggers, hilites, macros, and hooks. ; ; ; ; Note: Skills that require an optional target, such as ; ; Push, are hooked in such a way that if there ; ; is no target given, it will use the skill with no ; ; target, otherwise it will use the skill with the ; ; provided target. So, to initiate combat, or specify ; ; a target in combat, you could do: pu monster ; ; If you are in combat, you can just type: bf ; ; This script was written for TF 4.0 stable 1, on Unix. ; ; I have been told that some of the syntax here gives ; ; problems when running under Cygwin on Windows. ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; /REQUIRE textutil.tf ;; Change this to your command delimiter. MUD default is ; /SET delim=; ;; Change this to how you want info reported. Change to say to send ;; on party say line /SET reporter=report ;; Converts seconds into minutes and seconds, very useful /DEF formattime=\ /SET tmptime=%1 %; \ /SET tmpmin=$[trunc(tmptime/60)] %; \ /SET tmpsek=$[trunc(tmptime-(tmpmin*60))] %; \ /IF ({tmpsek}<10) /SET tmpsek=0%{tmpsek} %; /ENDIF %; \ /_ECHO %{tmpmin}:%{tmpsek} ;; To report total interval time for camping trigger /DEF checktime = \ /SET stopcamptime=$[time()] %; \ /SET camptime=$[stopcamptime-startcamptime] %; \ /SET camptime2=$(/formattime %{camptime}) ;; For cctime trigger /DEF checktime2 = \ /SET testcamptime=$[time()] %; \ /SET chktime=$[testcamptime-startcamptime] %; \ /SET chktime2=$(/formattime %{chktime}) %; \ /SEND @party %{reporter} Time since last camp: %chktime2 ;; Skills ;;;;;;;;; Camping /DEF -ag -h"send {camp}" skl_camping = \ /SET cast_status=CAMP %; \ /SEND @use camping%{delim}party %{reporter} Camping %; \ /SEND look /DEF -F -t"You look around and find a suitable spot on the ground to rest for" start_camp_timer = \ /SET startcamptime=$[time()] /DEF -F -t"You wake up!" camp_interrupted = \ /ECHO -aBCbgblue,Cyellow *** CAMPING INTERRUPTED *** %; \ /SEND look /DEF -F -t"You lie down and begin to rest for a while." set_camp_status = \ /SET camp_status= /DEF -F -aBCcyan -t"You awaken from your short rest, and feel slightly better." wakey_wakey = \ /SEND @party %{reporter} Done Camping %; \ /SEND look /DEF -F -aCmagenta -t"You feel a bit tired." ready_to_camp = \ /checktime %; \ /SET camp_status=C %; \ /SEND @party %{reporter} Ready to Camp! (%camptime2) /DEF -F -aCmagenta -t"You stretch yourself and consider about camping." ready_to_camp2 = \ /checktime %; \ /SET camp_status=C %; \ /SEND @party %{reporter} Ready to Camp! (%camptime2) /DEF -F -aCmagenta -t"You feel like camping a little." ready_to_camp3 = \ /checktime %; \ /SET camp_status=C %; \ /SEND @party %{reporter} Ready to Camp! (%camptime2) /DEF -F -aBCblue -t"You don't quite feel like camping at the moment." not_tired = \ /SEND look %; \ /checktime2 ;; Reports time since last camp /DEF -ag -h"send {cctime}" check_camp_time = /checktime2 ;;;;;;;; Consider /DEF -ag -h"send {cons}*" skl_consider = \ /SET cast_status=CONS %; \ /SEND @use consider at %{-1} ;;;;;;;; Fire Building /DEF -ag -h"send {fire}" skl_firebuilding = \ /SET cast_status=FIRE %; \ /SEND @use fire building %;\ /SEND party report Starting fire ;;;;;;;;; Fresh Pants ;; For fresh pants, you can give an optional corpse number as a target. ;; Eg. fp 3 for targetting corpse 3 /DEF -ag -h"send {fp}*" skl_fresh_pants = \ /SET cast_status=FP %; \ /IF /TEST $[%{-1} !~ ""] %; \ /THEN /SEND @use fresh pants at corpse %{-1} %; \ /ELSE /SEND @use fresh pants at corpse %; \ /ENDIF ;;;;;;;;; Hunting /DEF -ag -h"send {hunt}" skl_hunting = \ /SET cast_status=HUNT %; \ /SEND @use hunting ;;;;;;;;; Push /DEF -ag -h"send {pu}*" skl_push = \ /SET cast_status=PUSH %; \ /IF /TEST $[%{-1} !~ ""] %; \ /THEN /SEND @use push at %{-1} %; \ /ELSE /SEND @use push %; \ /ENDIF ;;;;;;;;; Torch Creation /DEF -ag -h"send {torch}" skl_torch_creation = \ /SET cast_status=TORCH %; \ /SEND @use torch creation ;;;;;;;;; Stargazing /DEF -ag -h"send {gaze}" skl_stargazing = \ /SET cast_status=GAZE %; \ /SEND @use stargazing ;;;;;;;;; Informational /DEF -F -aBCcyan -t"Using your sleeping bag you rest a little better." sleeping_bag_lite = /DEF -F -aCred -t"Camping indoors is not nearly as comfortable, but perhaps you" indoor_camping_lite = /DEF -F -aCred -t"will at least dream of the wilderness while you sleep." indoor_camping2_lite = ;;;;;;;;; Communication /DEF -F -p9 -P0Cyellow -t"[[{<(]nomad[]}>)]" nomad_lite =