Hi,
I am new to Mushclient and so having some issues with a few things. One of which is utilising DoAfterSpecial effectively.
In Perl, I am attempting to set a variable = 1, then after 1 second set it = 0. What I can't figure out is how to do this in DoAfterSpecial. Currently I am using timers and setting them true or false and I find this to be cludgy.
Example:
$world->SetVariable("eatingyarrow", "1");
$world->EnableTimer("eatingyarrow", true);
$world->ResetTimer("eatingyarrow");
This is what I tried with DoAfterSpecial and failed miserably at:
$world->SetVariable("eatingyarrow", "1");
$world->DoAfterSpecial (1, '$world->SetVariable("eatingYarrow", "0");', 12);
I am new to Mushclient and so having some issues with a few things. One of which is utilising DoAfterSpecial effectively.
In Perl, I am attempting to set a variable = 1, then after 1 second set it = 0. What I can't figure out is how to do this in DoAfterSpecial. Currently I am using timers and setting them true or false and I find this to be cludgy.
Example:
$world->SetVariable("eatingyarrow", "1");
$world->EnableTimer("eatingyarrow", true);
$world->ResetTimer("eatingyarrow");
This is what I tried with DoAfterSpecial and failed miserably at:
$world->SetVariable("eatingyarrow", "1");
$world->DoAfterSpecial (1, '$world->SetVariable("eatingYarrow", "0");', 12);