Log in

View Full Version : Need some help with this one


Weldarr
08-31-2008, 02:30 PM
Does anyone know how to set this up correctly? What i want to do is force the player to hail npc X before the timer runs out. I've tried a few basic set ups such as:

if (($text =~/hail/i)&&($timer != "wrong"))
if (($text =~/hail/i)&&($timer <= "wrong"))
if (($text =~/hail/i)&&($timer !eq "wrong"))

And none of them work properly... If someone could help me figure this out, would be appreciated

trevius
08-31-2008, 05:37 PM
I don't think I have tried doing exactly what you are wanting to do before just yet. But, maybe something like this would work:

if (($text =~/hail/i)&&(!defined($timer == "wrong")))

If not, I am sure there is another way to do it.