Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Lostego
Beginner


Joined: 14 Oct 2001
Posts: 12

PostPosted: Fri Sep 06, 2002 2:01 am   

Need Help Please!
 
I'm trying to set up a trigger so i can use bite attack, then use claw attack twice before using bite attack again.

The msgs for claw attack are: You tear (*) belly AND As (*) falls for a false blow

The msgs for bite attack are: You decide (*) would look better as a fountain AND You tear into (*) neck, ripping out sinew and arteries.

By the way #AD var 1 doesn't recognize the variable.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Sep 06, 2002 4:19 am   
 
quote:

I'm trying to set up a trigger so i can use bite attack, then use claw attack twice before using bite attack again.

The msgs for claw attack are: You tear (*) belly AND As (*) falls for a false blow

The msgs for bite attack are: You decide (*) would look better as a fountain AND You tear into (*) neck, ripping out sinew and arteries.

By the way #AD var 1 doesn't recognize the variable.



#trigger "tClaw" {{You tear|As} (*) {belly|falls for a false blow}} {#if (@var < 2) {claw %1;#add var 1} {bite %1;var = 1}}

#trigger "tBite" {{You decide|You tear into} (*) {would look better as a fountain|neck, ripping out sinew and arteries}} {claw %1}

li'l shmoe of Dragon's Gate MUD
Reply with quote
Lostego
Beginner


Joined: 14 Oct 2001
Posts: 12

PostPosted: Sun Sep 08, 2002 11:22 pm   
 
This would be great...but #add fails to do add 1 to the variable...it doesn't recognize the variable as it being a variable.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Sep 08, 2002 11:28 pm   
 
Ok, tell us, what do you see as a result from the following (copy and paste it exactly as it appears into the command line)?:
#VAR testVar 2
#SHOW @testVar
#ADD testVar 1
#SHOW @testVar

You should see the following:
2
3

Also, what version of zMUD do you have?

Kjata
Reply with quote
Lostego
Beginner


Joined: 14 Oct 2001
Posts: 12

PostPosted: Mon Sep 09, 2002 12:06 am   
 
Ok I saw 2,3 version 6.34
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Sep 09, 2002 12:49 am   
 
quote:

Ok I saw 2,3 version 6.34



Try renaming the var used in the trigger. It might be that Zugg has a few keywords locked up that we can't use, and thus #ADD can't do the operation. If that's not it, is it just not doing the #ADD or is the trigger spitting out weird output like the code it's supposed to be executing?

li'l shmoe of Dragon's Gate MUD
Reply with quote
Lostego
Beginner


Joined: 14 Oct 2001
Posts: 12

PostPosted: Mon Sep 09, 2002 1:10 am   
 
The variable is fine till I put the #add in front or it then it turns black and doesn't count but the trigger makes a new variable called 0 and counts on it...
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Sep 09, 2002 2:28 am   
 
quote:

The variable is fine till I put the #add in front or it then it turns black and doesn't count but the trigger makes a new variable called 0 and counts on it...



hmm, do you create this variable via code (ie, #VARIABLE)? You might have a syntax error somewhere. I don't see one in the triggers I gave, but maybe it's elsewhere.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Lostego
Beginner


Joined: 14 Oct 2001
Posts: 12

PostPosted: Mon Sep 09, 2002 3:21 am   
 
nope create it using the menu...what style variable is yours?....i got this working using 0 as a variable though. :)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Sep 09, 2002 3:32 am   
 
quote:

nope create it using the menu...what style variable is yours?....i got this working using 0 as a variable though. :)



err, variables don't have styles...

li'l shmoe of Dragon's Gate MUD
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Sep 09, 2002 3:45 am   
 
Seems like you are doing:
#ADD @varName 1

Instead of:
#ADD varName 1

That is, it should be:
#ADD testVar 1

and not:
#ADD @testVar 1

Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net