View Single Post
  #461  
Old 01-04-2003, 07:18 PM
Bitsys's Avatar
Bitsys Bitsys is offline
 
Join Date: Oct 2002
Posts: 444
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strider Xero:
Make sure that you have created two user profile fields, one to store the user's level, and another to store the user's experience. Then, make sure that you and your opponent have those fields filled in appropriately. You can do this in the admin cp by viewing a user's profile in the admin cp.

I think I will change the whole experience/level system. Here is how the new system will work, let me know what you think:

Two new fields will be created in the user table. One will be called experience, the other will be called level. Any time a user posts, they will gain experience (if the admin chooses that option). That experience will add to their total experience (can be greater than 100). In order to calculate the user's level, I will use the same formula that is currently used for the user's post count. So, a user with 63,000 experience will have a level based on what you set the power level modifier to. If you set the modifier to 5, then with 63,000 experience, the user may only have a level of 27, but with a modifier of 1, the user may have a level of 2,000. The remainder of experience above the level will be used to calculate the user's progress towards gaining another level. This system will be better for the following reasons:
  • People who want to use the post count to determine experience can still do so.
  • People who want to give experience based on battle AND post count can do so.
  • People who want to be able to manually change the user's experience/level and make it PERMANENT will be able to do so.
  • I can still make it retroactive based on post count.
  • Users can still gain experience based on battles even if the admin chooses not to post the results of the battle to a forum

This will simplify the battle options menu greatly. If I were to implement this system, there would be much fewer database errors since there is no need to iunput the correct name of the user profile field. Also, Admins could switch between systems at any point in time, without worrying about users losing levels and experience.

Let me know what you think or if you need a little more explanation. Overall, I think this would be for the better if I changed it around a little bit.


WAIT! I just had another idea. Instead of making two new fields, I only need one - the experience field. Assuming that you would want to use the formula, I could make it so that everything is based off of experience, and the level is automatically calculated from that. Whenever you wanted to reward a user, you could give him/her a specific amount of experience. The higher the user's level, the more experience they would need to get to the next level.

So, how about that?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04111 seconds
  • Memory Usage 1,774KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete