# HG changeset patch # User Matti Hamalainen # Date 1711553016 -7200 # Node ID b189ae1b391c06a7e4e17b1eceaa5359d43c1a38 # Parent 27281a74c507199812544a614e76309863efcd8b Improve skill handling, also handle the 'sleep' pseudo-skill. diff -r 27281a74c507 -r b189ae1b391c ggrtf.tf --- a/ggrtf.tf Mon Mar 25 19:20:10 2024 +0200 +++ b/ggrtf.tf Wed Mar 27 17:23:36 2024 +0200 @@ -1960,18 +1960,25 @@ /endif ;; Start of skill -/def -i -p9999 -msimple -t"You start concentrating on the skill." gskill_start =\ +/def -i gskill_initialize =\ /set skill_t=$[time()]%;\ /set cnt_skills=$[cnt_skills+1]%;\ /set skill_st=on%;\ /set skill_st2=off%;\ - /set cast_info=SK%;/set cast_info_n=%;/set cast_info_t=%;@@cast info%;\ + /set cast_info=SK%;\ + /set cast_info_n=%;\ + /set cast_info_t=%;\ + /send @@cast info + +/def -i -p9999 -mregexp -t"^(You start concentrating on the skill|You begin searching for a proper place to rest)\.$" gskill_start =\ + /gskill_initialize%;\ /msk @{BCyellow} ---- SKILL START ---- @{n} (@{Cyellow}%{cnt_skills}@{n})%;\ - /gstatus_update%;/prexecfuncs %{event_skill_start} + /gstatus_update%;\ + /prexecfuncs %{event_skill_start} ;; Skill done -/def -i -p9999 -msimple -t"You are prepared to do the skill." gskill_end =\ +/def -i -p9999 -msimple -t"You are prepared to do the skill." gskill_done =\ /set cnt_sskills=$[cnt_sskills+1]%;\ /set skill_st=off%;\ /set skill_st2=on%;\