+= and -= operators

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.
Post Reply
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

+= and -= operators

Post by Pierce »

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: Select all

weapon.hp -= 1;
which doesn't work if it is not

Code: Select all

weapon.hp := weapon.hp - 1;
So my simple question: Are these operators only for script variables?
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

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