 |
chris123zugg Adept
Joined: 23 Aug 2013 Posts: 214
|
Posted: Mon Apr 14, 2025 11:40 pm
round to round iunt adjusting per round... |
gxprd=204
skxprd=(@gxprd+@gxpsp)
#show @gxprd @gxpsp @skxprd
this is inside a trigger capturing round to round, and this should be adding +204 a round but isnt...
this should be updating +204 every round but it's staying static after this first addition... what have i done now? |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4757 Location: Pensacola, FL, USA
|
Posted: Tue Apr 15, 2025 7:50 pm |
If you add two static values, the sum will stay the same every time.
Are the two values supposed to be changing?
You didnt give any triggers to show how.
Not enough information to go on. |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Carpesimia Beginner
Joined: 06 Feb 2025 Posts: 22
|
Posted: Tue Apr 15, 2025 8:44 pm |
Does gxpsp increase each round? If not, yeah, this is just two static values like Shalimar said.
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4757 Location: Pensacola, FL, USA
|
Posted: Wed Apr 16, 2025 10:50 am |
skxprd=(@skxprd+@gxprd)
Would be doing what you expect. |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
chris123zugg Adept
Joined: 23 Aug 2013 Posts: 214
|
Posted: Wed Apr 16, 2025 8:41 pm |
well no gxprd = 204 should be added by being in a different trigger each round, its a global variable, which is inside the output per round for my HuD from the mud.
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4757 Location: Pensacola, FL, USA
|
Posted: Thu Apr 17, 2025 3:27 pm |
I'm not sure how that is adding anything new to the problem?
Where the other variables get declared, doesn't matter, so long as the values are correct at runtime. (which you can test with #PRINT)
The only problem I can see is that you didn't include your total variable in the equation. Ergo it doesn't grow. |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
|
|