|
aedron Beginner
Joined: 29 Nov 2008 Posts: 20
|
Posted: 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. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Dec 03, 2008 12:30 am |
Bah. Thanks, Taz. I was on my phone and didn't realize the forum. Sorry!
Charneus |
|
|
|
|
|