Daily Lucky Numbers:
12
20
23
35
44
45

hooks??

Started by Diego, September 03, 2019, 07:20:34 PM

Previous topic - Next topic

Diego

Can we get some in-mod hooks for cross options with other mods.

E.g. Giving points with Shop mod using hooks when user gets best record, etc

Chen Zhen


Many people have asked for the Arcade to be integrated with the shop mod.
To tell you the truth, I have never tried that modification.
I will add this as a priority upgrade to the current beta.

I suppose an additional arcade admin page for shop integration.
It can include options for # of points for #1 high score, any high score, etc.

Things have to be thought out properly to be fair though.
For example, if someone deletes one of their high scores then it should remove X number of points.
Another option is to provide a check box to not allow people to delete their scores.
If it were not set up this way, people will abuse the point system.

Chen Zhen

Ok I think I see what you are requesting.
You are the one that supports/updates a shop mod.
I thought you were referring to the SA shop specifically although I gather it might me the same mod that you took over from Wayne at some point?

You are requesting a hook that passes some array data so that mod authors can opt what to do with that info?
That's easier for me and is a nice idea.

Diego

Quote from: Chen Zhen on September 04, 2019, 10:13:09 PMYou are requesting a hook that passes some array data so that mod authors can opt what to do with that info?

Yea that way any mod can use that info and you don't have to do anything else ;D