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
aedron
Beginner


Joined: 29 Nov 2008
Posts: 20

PostPosted: Tue Dec 02, 2008 8:13 pm   

#add
 
#add isn't doing what I've tried to make it do, is something wrong with the code?

The variable is @chest_wound, value of it is let's say, 1500.

^The internal wounds within your chest partially heal.$
This reflex here in the game heals the wounds by 800.

The value of this reflex is #add chest_wound -800

When this reflex goes through, it changes the value to 1088 -800 instead of 700.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Dec 02, 2008 10:31 pm   
 
Check to see if the variable is set as an interger type. It should reflect it under autotype, but check anyway. Otherwise, it should work. :p

Charneus
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Tue Dec 02, 2008 10:41 pm   
 
This is in the zMUD forum not the CMUD forum.

Along the lines of charneus' final sentiment though I can't think of a reason why it's not working. Try using
Quote:
#MATH chest_wound @chest_wound-800
instead.
_________________
Taz :)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Wed Dec 03, 2008 12:30 am   
 
Bah. Thanks, Taz. I was on my phone and didn't realize the forum. Sorry!

Charneus
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