Post by Aedo on Oct 15, 2013 11:02:30 GMT -8
So I'm fairly new to this whole "plugin" thing and new to coding in general. I've got some know how and lessons under my belt but I've never actually made a plug in before. I don't know if this is even the right place to be posting this.
Anyway, I'm looking for something of a step by step tutorial on the very basics of putting together a proboards plugin. From what I can tell, it's a matter of setting up variables and then making functions that use said variables to do things. I've watched the tutorial videos that Jordan provided and those have been quite helpful. I guess I'm not entirely sure where to start for the coding aspect of things. I have a solid idea and plan of what to make and now I'm working to get down to brass tacks.
As you might imagine, I'm a little anxious about wanting to make a real product for the first time. I feel kind of like I want a coach or mentor for this process and a tutorial would help that out a lot.
Anyway, for those interested, the plugin idea I have is similar to woop's w_experience but a little expanded from there. Below you can see the design doc I came up with that outlines what it is I'm trying to do.
Objective: I want to create a proboards plugin that will store and display six stats that are useful to every user on the Emerald Empire board. These six stats are Earth, Fire, Wind, Water, Void, and Experience Points (XP). The most important of these stats is XP. XP is a variable that will grow as a result of users posting in character threads. The other five stats will grow as a result of the user expending stored XP to "buy" higher stats. Therefore, this plugin will also need to implement a form of "store" page where players can execute the buying functions of the plugin.
This plugin will facilitate the basic game mechanics of the new EE forum role-playing game. Users will be rewarded for making role-playing posts with the XP stat and the store aspect provides a use for the XP stat to increase the other five, which in turn makes the user more powerful within the game.
Necessary Concrete Resources:
Yootil Library
One (or more) Super user key
Javascript Editor
Plugin Build Tool
Javascript Reference Library
Foreseen Variables(per user):
Earth Stat
Air Stat
Fire Stat
Water Stat
Void Stat
Temporary versions of each of the five stats for shopping purposes
Total XP
Current XP
Temporary Current XP
Growing Costs for Each of the Five Stats
Proposed Functions:
(displayStats)
A function which accesses the stored six stats and shows them in a list within each user's miniprofile.
(displayStats_2)
A function which accesses the stored six stats and displays them within each user's main profile.
(xpGain)
A function which increases the value each time the user posts within a certain category in the board (Which will be the In Character Category). This gain is permanent and will need to be stored in the Total XP variable.
(setXP)
A function which allows Admins to reset a user's XP value to a new value.
(storefrontPage)
A function which creates a new page wherein players can exchange earned XP for increases in each of their Five Stats. This page should include individual functions for buying up stats as well as a save button to finalize stat buying.
(buyStat_1-5)
A function which temporarily raises one of the five stats. There will actually need to be five of these.
(sellStat_1-5)
A function which allows a user to temporarily regain XP in exchange for lowering a temporary five stat value to a minimum of the current permanent stat level.
(finalizeStats)
A function which allows a user to save changes to the five stats and therefore permanently exchange XP for higher stat values.
Proposed Listeners:
Reset XP (On the user's profile page)
-Input field used to execute (xpSet)
The following should be on the store page.
5 Increase Stat buttons
-button used to execute (buyStat)
5 Decrease Stat buttons
-button used to execute (sellStat)
Save Button
-button used to execute (finalizeStat)
Anyway, I'm looking for something of a step by step tutorial on the very basics of putting together a proboards plugin. From what I can tell, it's a matter of setting up variables and then making functions that use said variables to do things. I've watched the tutorial videos that Jordan provided and those have been quite helpful. I guess I'm not entirely sure where to start for the coding aspect of things. I have a solid idea and plan of what to make and now I'm working to get down to brass tacks.
As you might imagine, I'm a little anxious about wanting to make a real product for the first time. I feel kind of like I want a coach or mentor for this process and a tutorial would help that out a lot.
Anyway, for those interested, the plugin idea I have is similar to woop's w_experience but a little expanded from there. Below you can see the design doc I came up with that outlines what it is I'm trying to do.
Objective: I want to create a proboards plugin that will store and display six stats that are useful to every user on the Emerald Empire board. These six stats are Earth, Fire, Wind, Water, Void, and Experience Points (XP). The most important of these stats is XP. XP is a variable that will grow as a result of users posting in character threads. The other five stats will grow as a result of the user expending stored XP to "buy" higher stats. Therefore, this plugin will also need to implement a form of "store" page where players can execute the buying functions of the plugin.
This plugin will facilitate the basic game mechanics of the new EE forum role-playing game. Users will be rewarded for making role-playing posts with the XP stat and the store aspect provides a use for the XP stat to increase the other five, which in turn makes the user more powerful within the game.
Necessary Concrete Resources:
Yootil Library
One (or more) Super user key
Javascript Editor
Plugin Build Tool
Javascript Reference Library
Foreseen Variables(per user):
Earth Stat
Air Stat
Fire Stat
Water Stat
Void Stat
Temporary versions of each of the five stats for shopping purposes
Total XP
Current XP
Temporary Current XP
Growing Costs for Each of the Five Stats
Proposed Functions:
(displayStats)
A function which accesses the stored six stats and shows them in a list within each user's miniprofile.
(displayStats_2)
A function which accesses the stored six stats and displays them within each user's main profile.
(xpGain)
A function which increases the value each time the user posts within a certain category in the board (Which will be the In Character Category). This gain is permanent and will need to be stored in the Total XP variable.
(setXP)
A function which allows Admins to reset a user's XP value to a new value.
(storefrontPage)
A function which creates a new page wherein players can exchange earned XP for increases in each of their Five Stats. This page should include individual functions for buying up stats as well as a save button to finalize stat buying.
(buyStat_1-5)
A function which temporarily raises one of the five stats. There will actually need to be five of these.
(sellStat_1-5)
A function which allows a user to temporarily regain XP in exchange for lowering a temporary five stat value to a minimum of the current permanent stat level.
(finalizeStats)
A function which allows a user to save changes to the five stats and therefore permanently exchange XP for higher stat values.
Proposed Listeners:
Reset XP (On the user's profile page)
-Input field used to execute (xpSet)
The following should be on the store page.
5 Increase Stat buttons
-button used to execute (buyStat)
5 Decrease Stat buttons
-button used to execute (sellStat)
Save Button
-button used to execute (finalizeStat)