PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
+= and -= operators

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097
Display posts from previous:   

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Fri Apr 20, 2007 1:05 pm    Post subject: += and -= operators Reply with quote

I don't know if this is more a core bug. I thought i could use the operators everywhere, but it seems they are only for variables not for e.g. members. I realized that a few minutes ago as i tried a

Code:

weapon.hp -= 1;


which doesn't work if it is not

Code:

weapon.hp := weapon.hp - 1;


So my simple question: Are these operators only for script variables?

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Fri Apr 20, 2007 3:20 pm    Post subject: Reply with quote

Far as I know, correct. For variable/array etc

Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty