Răsfoiți Sursa

feat(pkuxkx): map/path 添加新动作:say

dzp 1 an în urmă
părinte
comite
c3171b6e02
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      mud/pkuxkx/plugins/basic/map/step.tin

+ 4 - 0
mud/pkuxkx/plugins/basic/map/step.tin

@@ -190,6 +190,7 @@ VAR {清除门卫命令,默认为 attack}					map.step.crush.cmd	{attack};
         #switch {"$step"} {
             #match {"Give/%+/%+/%+"}    {map.pl.helper {&3} {}  {gate} { {type}{give}   {what}{&1}{who}{&2} }   };
             #match {"Answer/%+/%+"}     {map.pl.helper {&2} {}  {gate} { {type}{answer} {words}{&1}         }   };
+            #match {"Say/%+/%+"}        {map.pl.helper {&2} {}  {gate} { {type}{say}    {words}{&1}         }   };
             #match {"Ask/%+/%+/%+"}     {map.pl.helper {&3} {}  {gate} { {type}{ask}    {who}{&1}{what}     }   };
             #match {"Unwield/%+"}       {map.pl.helper {&1} {}  {gate} { {type}{unwield}                    }   };
             #match {"Prepare/%+/%+"}    {map.pl.helper {&2} {}  {gate} { {prepare}  {&1}                    }   };
@@ -385,6 +386,9 @@ VAR {清除门卫命令,默认为 attack}					map.step.crush.cmd	{attack};
         #case {"answer"} {
             answer $gate[words];
         };
+        #case {"say"} {
+            say $gate[words];
+        };
         #case {"ask"} {
             ask $gate[who] about $gate[what];
         };