[ACS] (Solved)Score system not working correctly?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

[ACS] (Solved)Score system not working correctly?

#1

Post by FranckyFox2468 » Sun May 07, 2017 3:38 pm

Been trying to developpe a score system that is shared amongst all players with the help of a friend, but neither he or zdoom appears to be able to tell what is currently wrong about it and why it doesn't work. The friend in question suggested i use the default scoring system but my goal is that the score is equal to everyone whether they join mid-late of a match. To be more of a collaborative effort. Once again i would like to remind ACS is far from my thing so sorry if i make an obviously dumb mistake.

Here's the code i made to test, it apparently should work but doesnt:

Code: Select all

global int 1:CurrentScore;

script "Score 100" (void)
{ 
   CurrentScore += 100; 
}
and here's the SBARINFO for its display:

Code: Select all

drawnumber 9, INDEXFONT, yellow, GlobalVar 1,Interpolate(999), 84, 155;
Last edited by FranckyFox2468 on Sun May 07, 2017 3:53 pm, edited 1 time in total.

User avatar
Fused
Contributor
Posts: 658
Joined: Sat Nov 09, 2013 9:47 am
Location: Netherlands
Contact:

[ACS] Re: Score system not working correctly?

#2

Post by Fused » Sun May 07, 2017 3:42 pm

...So what doesn't work about it?
My mods
Image Image

My socials
Image Image

User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

[ACS] Re: Score system not working correctly?

#3

Post by FranckyFox2468 » Sun May 07, 2017 3:47 pm

well when i use "puke "score 100"" to test it, it doesn't do anything.

User avatar
Fused
Contributor
Posts: 658
Joined: Sat Nov 09, 2013 9:47 am
Location: Netherlands
Contact:

[ACS] Re: Score system not working correctly?

#4

Post by Fused » Sun May 07, 2017 3:49 pm

I dunno. You should probably just use inventory items. I never liked using global vars myself, and since you have about 0 knowledge on acs, this is way above your league.
My mods
Image Image

My socials
Image Image

User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

[ACS] Re: Score system not working correctly?

#5

Post by FranckyFox2468 » Sun May 07, 2017 3:53 pm

Or we both forgot pukename exists, until now. Guess we're on the same league :v:

User avatar
Fused
Contributor
Posts: 658
Joined: Sat Nov 09, 2013 9:47 am
Location: Netherlands
Contact:

[ACS] Re: Score system not working correctly?

#6

Post by Fused » Sun May 07, 2017 4:22 pm

FranckyFox2468 wrote:Or we both forgot pukename exists, until now. Guess we're on the same league :v:
I know very well it exists. I just didn't bother reading your post properly, I only wanted to know what went wrong. But if it works now, then whatever I guess.
My mods
Image Image

My socials
Image Image

Post Reply