Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chris123zugg
Adept


Joined: 23 Aug 2013
Posts: 214

PostPosted: 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?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4757
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Carpesimia
Beginner


Joined: 06 Feb 2025
Posts: 22

PostPosted: Tue Apr 15, 2025 8:44 pm   
 
Does gxpsp increase each round? If not, yeah, this is just two static values like Shalimar said.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4757
Location: Pensacola, FL, USA

PostPosted: Wed Apr 16, 2025 10:50 am   
 
skxprd=(@skxprd+@gxprd)

Would be doing what you expect.
_________________
Discord: Shalimarwildcat
Reply with quote
chris123zugg
Adept


Joined: 23 Aug 2013
Posts: 214

PostPosted: 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.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4757
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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