Author Topic: Problem Undoing Variables..  (Read 3774 times)

airikita

  • Newbie
  • *
  • Posts: 17
Problem Undoing Variables..
« on: September 12, 2008, 06:48:53 PM »
Well, what I want to do is my bot can be hugged 2 ways, one with it upset, and one with it happy. The one I want to just have it upset has to be after it's slapped, the happy phrase will be either activated first thing, or after the first hug after the slap. Both these phrases has to be said with 1 command..

I tried setting the variables, but using "set %variable" makes it permanent, and doesn't change it back.. so is there another command to do it? I used "unset %variable" but it tells me to use "/unset <variable> <something>" which is what I did, but it said the same thing anyways.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Problem Undoing Variables..
« Reply #1 on: September 13, 2008, 09:46:28 AM »
With the /unset command, you just pass the name of the variable.
The IceChat God

airikita

  • Newbie
  • *
  • Posts: 17
Re: Problem Undoing Variables..
« Reply #2 on: September 13, 2008, 10:38:56 AM »
With the /unset command, you just pass the name of the variable.

it tells me to use "/unset <variable> <something>" which is what I did, but it said the same thing anyways.

I tried /unset too..

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Problem Undoing Variables..
« Reply #3 on: September 13, 2008, 04:18:32 PM »
Well, as I said earlier, the mirc script engine is far from perfect, you would have much more luck using the vbs script engine for more complicated scripts, you will have much more success.
The IceChat God