Here is my issue: I'm working with this macro, modified into a .inc file (possibly incorectly, which could be the root of the problem). The code for the .inc file is
Code: Select all
Sub Twitch
:Twitch
/if (${Twitching}==1) {
/if (${Me.SpellReady[Sedulous Subversion]}) /call cast "Sedulous Subversion"
/if (${Me.SpellReady[Covetous Subversion]}) /call cast "Covetous Subversion"
}
/doevents
/delay 4
/goto :Twitch
/return
Sub Event_Chat(string ChatType,string Sender,string ChatText)
/if ((${ChatText.Equal[twitch]}) && (${ChatType.equal[twitchchannel])
/varset Twitching 1
/target ${Sender}
/if (${Target.ID}) {
/call Twitch
}
}
/if ((${ChatText.equal[FM]}) && (${ChatType.Equal[chat]})) {
/varset Twitching 0
}
/return
Sub Event_OOM
/varset Twitching 0
/return
The following are the events that I added to the macro, when trying to convert the twitch macro to a .inc.
Code: Select all
#Chat Chat
#Chat twitchchannel
#event
Code: Select all
Failed to parse /if command. Could not find command to execute.
twitchbot.inc@13 (Event_Chat(string ChatType,string Sender,string ChatText) /if ((${ChatText.Equal[twitch]})
Now, I'm sure that the reason for my mistakes is stupid, and the result of the fact that I'm a noob at coding. But any help would be appreciated. RTFM has gotten me this far, but unfortunately, I can't manage to get any further on my own.

