WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: Diego on September 03, 2019, 07:20:34 pm

Title: hooks??
Post by: Diego on September 03, 2019, 07:20:34 pm
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
Title: Re: hooks??
Post by: Chen Zhen on September 04, 2019, 05:20:39 pm

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.
Title: Re: hooks??
Post by: Chen Zhen on September 04, 2019, 10:13:09 pm
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.
Title: Re: hooks??
Post by: Diego on September 07, 2019, 02:25:51 pm
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
EhPortal 1.24 © 2018, WebDev