vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 15, 2015 18:31:28 GMT -8
Hey everyone!
I am aware of some great plug-ins like Word Counter and Monetary System for doling out points based on Word Count and Post Count, but is there any way at all to place a number on a profile or a Group that for example multiplies against the Word Count and delivers a reward based on that product?
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 16, 2015 18:34:16 GMT -8
Could someone please help me with this?
For example:
Someone writes a WC of 1000.
I want to be able to apply a (.7 x 1000) and have it spit out 700 automatically on the Monetary System form. Is that at all possible?
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Sept 18, 2015 17:51:55 GMT -8
Could someone please help me with this? For example: Someone writes a WC of 1000. I want to be able to apply a (.7 x 1000) and have it spit out 700 automatically on the Monetary System form. Is that at all possible? It would most likely have to be done by the person who created word count
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 18, 2015 21:18:17 GMT -8
Thank you very much Pastuleo I will try that route.
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,864
December 2005
horace
|
Post by Chris on Sept 19, 2015 15:21:18 GMT -8
The plugin comes with 2 disbursement modes; bonus and proportional. It sounds like you're after the proportional mode unless you have a specific set of factors to considered when calculating proportions other than what the plugin uses in that mode. Listing those factors would help to avoid wasting resources if they could be accomplished with the current incarnation.
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 19, 2015 21:20:39 GMT -8
Chris , thank you for all your help, and I love the Data gif Is that Windows 8? And ST sig XD. I replied some on the other thread, but I didn't list all of the factors as you asked for here. (Word Count x numberA) x (1 + numberB + numberC + numberD...) and so on is our general formula, but using the commutative property we can simplifiy it into (Word Count x number) easily enough, especially if we're able to make the number that is multiplied against the Word Count dependent on a player's Group. The holy grail would be being able to create a Group and assign it any number (decimals from 0.40 to 5.00) that would multiply against the post's Word Count and add the result into the player's Monetary System wallet.
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,864
December 2005
horace
|
Post by Chris on Sept 20, 2015 18:31:01 GMT -8
Thanks vipoi! The OS is of course LCARS Given that additional information (thank you) such a feature would most likely require an addition to the plugin. I am however undecided as to how to implement this especially since it involves a compatibility and not a core feature. What I'm considering... - the addition of a third ("custom") disbursement mode where one could enter their own formula for calculating a final amount given a set of variables to use (requires creating new subsystems to create and back variables with data on the fly as well as parse mathematical expressions without relying on eval)
- addition of a hook on the exported API that allows for a callback that will calculate then return a value (far more versatile)
- Suggestions from others
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 21, 2015 15:04:11 GMT -8
Awesome! Both of those sound like lovely ideas. If the first is a field where I can input a formula that may be ideal, but if the API hook is fairly easy-to-use for a newbie like me maybe that'd be good because I like the sound of versatility. Could either support different formulas or variables based upon a Group or Player account? Even if it couldn't both of those would be an amazing, site-saving solution for us. Let me know if there is any way at all I could help, though my coding ability is pretty non-existent I am willing to do any grunt work you require for this.
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,864
December 2005
horace
|
Post by Chris on Sept 26, 2015 18:06:14 GMT -8
I got some free time today vipoi and added a calc_money method to the exported API of the word counter plugin as previously discussed, that then made it possible for a secondary plugin to be created that inserted itself into the calculation process to change it to use a group/individual rate. download: [ word count v1.0.6] [ And the Words Get In the Way] The word count plugin is long overdue for an oil change which this is not. I still want to update it to take advantage of the newer API Peter created for the monetary system but the older API still works although I don't know for how much longer. Please download and install both the special edition word counter plugin and the helper plugin to see if it does as you requested. I would recommend testing on a test bed forum first or limiting it to only certain members/groups rather than the general forum population.
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 28, 2015 9:29:39 GMT -8
Amazing! I am taking a look at it now and will let you know Thank you so much, you've really went out of your way to help us when you didn't have to and you're really deserving of being in Starfleet, were we in another century And I'm excited to see the next iteration of WC!! Testing now, Commander.
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 30, 2015 15:11:17 GMT -8
Chris, it's working great! So far it's passing all my tests, and best of all is a wonderful solution that can be made to work for the site. I do have two questions -- is it possible for me (or some benevolent soul ) to change the Group section of the So Much I Want To Say plugin to be cumulative upon one another before being multiplied? For instance, Group 1 = 2.0 , Group 2 = 0.5, and if the player is in both groups a cumulative 2.5 is sent to be multiplied? I would like to see that because of the way multiple items and environmental conditions can stack, but if not there are ways we can work it out. And for question number two, instead of a calculation to be done based upon the WC of a single post when the Create Post or Reply button is pressed, is it instead possible for the WC of each individual in an entire thread to be captured and ran through these calculations with another forum button, such as the Lock Thread command? For instance, a thread is finished, and a button like Lock Thread is pressed so that these numbers are processed for each of the participants. Thank you so very much for all your work Eton Bones, I am still really ecstatic over this and love watching the numbers accumulate so elegantly during testing. Even if those two answers are no, this is brilliant help for us and we can adapt ourselves to it.
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,864
December 2005
horace
|
Post by Chris on Sept 30, 2015 18:17:34 GMT -8
That kind of feedback gives my emoji an emoji. The first should be a fairly simple modification to add a cumulative rate to the " So Much I Want To Say But The Words Get In The Way" plugin, the second however has me a bit confused. Unless I am completely misunderstanding what you are proposing, adding up the numbers at the closing of the thread instead of individually would still reach the exact same result due to the distributive property of multiplication over addition. In other words you're saying instead of post_1 * rate + post_2 * rate you want (post_1 + post_2) * rate but according to the distributive property those two are equivalent. The fact that the contents of each posts within a thread would not be readily available for counting purposes on a thread that extends beyond a single page would make changing to a delayed count problematic and would require a different plugin since the word counter is geared around the posting form to calculate as well as prevent posting when unfulfilled minimums/maximums are in effect. EDIT:
Updated the " So Much I Want To Say But The Words Get In The Way" plugin to be group cumulative, please re-download and reinstall to take advantage of that new feature
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Sept 30, 2015 22:52:58 GMT -8
Can I just say that you're my hero Thank you for everything you've done Eton Bones! I'm in the testing phase of it, and it's working out great, and your wonderful update has solved yet another problem for us. I really can't thank you enough, and I'm going to be following up with you as I get more testers in and more feedback from fellow players. I will make a character in your honor
|
|
vipoi
New Member
Posts: 22
inherit
220754
0
May 6, 2021 18:00:56 GMT -8
vipoi
22
April 2015
vipoi
|
Post by vipoi on Oct 1, 2015 12:57:10 GMT -8
Mr. Chris, one last thing (and it's not an emergency or anything and I totes understand if you don't have time for it cause you've already done so much and I'm hesitant to ask) but it was a request from one of my staff-testers -- is there a way for the So Much I Want to Say plugin to be able to instead of overriding the Group with the individual rate instead multiply the cumulative Group rate (if there is one) against the Individual rate before the product is sent to multiply against the WC? For instance: (Group 1 Rate + Group 2 Rate) * (Individual Rate) * WC If not it's not a huge deal, it would just make it easier for my tester friends and staff by completing our formula with each item set as a group against an individual's quality score, thank you again for your help, I really can't say it enough.
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,864
December 2005
horace
|
Post by Chris on Oct 1, 2015 14:58:29 GMT -8
That also seems like a simple change. I left the plugin in build mode so you can just go in there and change it yourself. Look for this section in the JS component of the plugin
And change just the line in red to
That should change the individual rate from being mutually exclusive to being cumulative with the group rate
Edit: I initially mistook the request to mean include the individual rate as part of the cumulative group rate but after re-reading it clearly states a desire to use the individual rate as a multiplier of the group rate so I updated the plugin to behave in that manner.
You can easily verify which effective rates are being used by making sure the log for third-party compatibility is enabled in the word counter plugin (advanced tab) then watch your browser's developer tools console for informational logs from the plugin, Just be sure to have persistence enabled so the logs remain in the console when the page reloads after making a post.
|
|