Create account / Log in

Stat / score keeping?

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Stat / score keeping?

Postby Goosifer » November 14th, 2012, 12:20 pm

Hi,

I'm looking for some guidance on how to implement stat/score keeping into my module.
I'd like to create a tab where you can assign victory points, kills/losses etc.
The score keeping doesn’t have to be dynamic based on events on the board.

Could you please recommend an existing module that I can look at to learn how this is done and get some inspiration?

Thanks!

Goose
Goosifer
 
Posts: 13
Joined: June 15th, 2012, 3:27 am

Re: Stat / score keeping?

Postby DrNostromo » November 14th, 2012, 3:42 pm

If you want to take care of it manually, that's easily done with a display of the stats/score and up/down buttons to make adjustments.

I've attached a sample that I did quite a while back showing this technique. It's an army unit that has two displays - one for rank and one for kill credits. The small green up and down arrows are used to manipulate the values. You should be able to get some ideas out of it.

Just change the .zip to .vmod.
Attachments
MultipleLayerSample.zip
(73.33 KiB) Downloaded 104 times
User avatar
DrNostromo
 
Posts: 1036
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: Stat / score keeping?

Postby Goosifer » November 14th, 2012, 4:26 pm

Thanks, but I think my problem statement was poor.

As seen in the image, I drop tokens into the cell/region and it updates the XP and Total based on the value of the token.
A "Soft"-kill token gives 1p, "VP"-token 3p and a "Dead"-token -1p for the infantry that was killed.
Image
I understand that I need to define token value, store in variables and a command when a token is dropped.
Does anything like this already exist? I found that SmallWorld has drop token system for points but I'm looking for more examples.

Thanks
Goosifer
 
Posts: 13
Joined: June 15th, 2012, 3:27 am

Re: Stat / score keeping?

Postby brian448 » November 14th, 2012, 11:24 pm

Check out the Yahtzee Module.


----- Original Message -----
From: "Goosifer"
To:
Sent: Wednesday, November 14, 2012 4:20 AM
Subject: [messages] [Module Design] Stat / score keeping?


> Hi,
>
> I'm looking for some guidance on how to implement stat/score keeping
> into my module.
> I'd like to create a tab where you can assign victory points,
> kills/losses etc.
> The score keeping doesn’t have to be dynamic based on events on the
> board.
>
> Could you please recommend an existing module that I can look at to
> learn how this is done and get some inspiration?
>
> Thanks!
>
> Goose
>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=37074#p37074
> _______________________________________________
> messages mailing list
> messages@vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
>

_______________________________________________
messages mailing list
messages@vassalengine.org
http://www.vassalengine.org/mailman/listinfo/messages
brian448
 
Posts: 78
Joined: May 23rd, 2008, 1:35 am


Return to Module Design

Who is online

Users browsing this forum: No registered users and 0 guests