Unity - Stats Reset and Point Spending Project menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Veritable's Avatar OwnedCore News Correspondent
    Reputation
    326
    Join Date
    Apr 2007
    Posts
    372
    Thanks G/R
    52/123
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unity - Stats Reset and Point Spending Project

    Hello everyone!

    So I have been teaching myself a bunch of coding and working on various sample projects that accomplish particular tasks. My latest one deals with leveling up a character, giving points based on level ups, and then when you hit max level you reset the character to 1 and give bonus attribute points.

    To see the project visit: Unity WebGL Player | CharResetTest

    The link to download the unity project is at the top of the page.

    What the project entails:
    • PlayerStats class for holding the player stats/level/attributes
      • Function for Leveling Up
      • Function for Bonus Calculation on regular level up
      • Function for Bonus Calculation with overload on max level
      • Returning a string with the stats information
      • Private variables for all stats
      • get/set functions for setting/getting the variables so you don't directly change the values of the variables directly. (Not publicly visible to any other part of the program)

    • Displaying the information by calling the function from a separate game object, onto a TextMesh GameObject component


    Instructions are included onscreen on how to use it, but:
    Spacebar levels you up.
    If you have points to spend, pressing A increases Strength by 1, S increases Dexterity by 1, D increases Intellect by 1.

    If you like this, let me know if there is any particular type of system you are wanting to know how it works, and I will see if I can make something and put it up here for you to learn from

    *Note: Also working, MySQL + bCrypt + Unity communication project, that I am currently in the process of writing functions for requesting and putting information to and from the database from within the game. (Like user login information).

    Unity - Stats Reset and Point Spending Project

Similar Threads

  1. NO honor reset and tokent reset at wotlk
    By pauk in forum World of Warcraft General
    Replies: 4
    Last Post: 10-01-2008, 01:31 PM
  2. [custom model]Lajbans and kendors axe project (done)
    By lajbans in forum World of Warcraft Model Editing
    Replies: 17
    Last Post: 08-03-2008, 07:37 PM
  3. Trainers don't allow you to reset talent points
    By roguesownu in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-26-2008, 06:05 PM
  4. free skill resets and repairs
    By Hartstock in forum World of Warcraft Exploits
    Replies: 12
    Last Post: 01-22-2008, 03:01 AM
All times are GMT -5. The time now is 04:39 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search