syntax to trigger written conf?

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
skydrake
Noob
Noob
Posts: 5
Joined: 23 Mar 2015, 11:12
Noob?: Yes

syntax to trigger written conf?

#1 Post by skydrake »

#I had macro to trigger hour and minute#
do conf xquest1x $.hour $.minute

#I need to have a IF syntax for it to read back the same hour and minute for it to renew the quest#
if (@config (xquest1x) == $.hour $.minute) goto doquest

I'm wrong on the bold lines, anyone knows how to I read back the hour and minute that I had recorded down on earlier trigger? :(

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: syntax to trigger written conf?

#2 Post by SkylorD »

Try to use the second ($.hour $.minute) comparison inside of quotes!
Learn rules

skydrake
Noob
Noob
Posts: 5
Joined: 23 Mar 2015, 11:12
Noob?: Yes

Re: syntax to trigger written conf?

#3 Post by skydrake »

u mean like this?

if (@config (xquest1x) == ($.hour $.minute)) call macro

will try out next attempt thx, i might tested it not sure if i did.. guess need to test it

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: syntax to trigger written conf?

#4 Post by SkylorD »

if (@config (xquest1x) == "$.hour $.minute") call macro
Learn rules

Locked