Trying to ifcheck on alias

Posted by Mike.mac.kenzie on Fri 01 Mar 2024 07:41 AM — 2 posts, 6,599 views.

#0
So my alias looks like this
(ed|rs) her

and I'm trying to do this


if %1 == "rs" then
  Send("evoke rockstrike heretic")
  EnableTriggerGroup("autohit", true)
  SetVariable("target", "heretic")
else
  Send("evoke eden harm heretic")
  EnableTriggerGroup("autohit", true)
  SetVariable("target", "heretic")
end


I want to change what the alias does depending on which word is used, ed or rs.
Australia Forum Administrator #1
What is happening exactly? I'm guessing you have hit FAQ 32:

Template:faq=32
Please read the MUSHclient FAQ - point 32.


Try:


if "%1" == "rs" then