|
Pgrammar Newbie
Joined: 21 Jul 2002 Posts: 2 Location: USA
|
Posted: Sun Jul 21, 2002 2:52 am
coding problem.... maybe someone can help me out |
TRIGGER:
&ass begins to follow you
VALUE:
#t- agaa
#wait %random( 3000, 4000)
lose @ass
#add %expand( @ass, 1) 1
#if (%expand( @ass, 1)=1) {say don't follow me}
#if (%expand( @ass, 1)=2) {say I told you to stop following me}
#wait %random( 5000, 6000)
#step
#t+ agaa
That is something I'm using in part of a scripted walker (hence the #step).
What I want it to do is lose someone when they follow me, store their name into the @ass, and add 1 to their name which would be a variable unto itself. Then, if their name (being the variable) = 1, say don't follow me. And if their name (being the variable) = 2, say I told you to stop following me.
I think I just figured it out typing this... but maybe not :( If anyone can help, thanks. I think I made it sound a bit confusing.
If you have the stuff, I can make it. |
|
|
|
Pgrammar Newbie
Joined: 21 Jul 2002 Posts: 2 Location: USA
|
Posted: Sun Jul 21, 2002 3:12 am |
Nothing I've done so far will work. I first thought there might be some command to return how many times a word/number appears in a string/database. I searched throughout the help, but no luck. If anyone knows of one, or can help me 'fix' my code from up there ±, please respond :) I've been trying to fix this 'problem' for quite a while now.
(×_ë}
That's how I feel =P
If you have the stuff, I can make it. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sun Jul 21, 2002 4:59 am |
TRIGGER:
^(%x) begins to follow you
VALUE:
#VAR ass %1
#t- agaa
#wait %random( 3000, 4000)
lose @ass
#IF (%null(@ass)) {#VAR @ass 0}
#add @ass 1
#if (@{@ass}==1) {say don't follow me}
#if (@{@ass}==2) {say I told you to stop following me}
#wait %random( 5000, 6000)
#step
#t+ agaa
Rough guess is that it isn't adding to the variable as it isn't define perhaps.
Rewrote it a bit to the way I prefer things.
Ton Diening |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|