Prestige Classes

You are here:
← All Topics
Version: 2019.200 Requirements:uMMORPG3d, Tools, Usage Requirements, TraitsScript Define:_IMMOPRESTIGECLASSES
Core Changes:YesTutorial Video:No

Description

Adds a optional extra class to each player prefab that can be acquired by using a special item. Using the item adds a “prestige class” to the player, subsequent item uses can change the class to another class etc.

Skills and Items can now be limited to be useable/castable/learnable only by one or more prestige classes.

Already learned skills are kept and can still be used, even when changing prestige class (but you can set it up so that skills might not be useable after class change).

In addition, all interaction requirements can now also ask for a specific prestige class.


Core Changes

  1. [Required] Open the following script Player.cs. See Changes...

    Locate this line:
    // helper function for command and UI
        // -> this is for learning and upgrading!
        public bool CanUpgradeSkill(Skill skill)
        {
            return skill.level < skill.maxLevel &&
                   level >= skill.upgradeRequiredLevel &&
                   skillExperience >= skill.upgradeRequiredSkillExperience &&
                   (skill.predecessor == null || (HasLearnedSkillWithLevel(skill.predecessor.name, skill.predecessorLevel)));
        }

    Modify to match:

    // helper function for command and UI
        // -> this is for learning and upgrading!
        public bool CanUpgradeSkill(Skill skill)
        {
            return UCE_CanUpgradeSkill(skill) &&
            		skill.level < skill.maxLevel &&
                   level >= skill.upgradeRequiredLevel &&
                   skillExperience >= skill.upgradeRequiredSkillExperience &&
                   (skill.predecessor == null || (HasLearnedSkillWithLevel(skill.predecessor.name, skill.predecessorLevel)));
        }

Installation

  1. [Required] This AddOn Requires my “Usage Requirements” and “Traits” AddOns as well, install them AddOn first.
  2. [Required] Also remember to do the required core changes for “Usage Requirements” first.
  3. [Required] Now do the core changes for “Prestige Classes” AddOn, as stated above.
  4. [Required] Move the “Items” folder to your main Resources > Items folder and move the “UCE Prestige Classes” folder to your main resources folder (its a new folder).
  5. [Required] Check the new section in your item and skill templates, look for “Usage Requirements” and “allowed Prestige Classes” therein.
  6. [Required] Also check the new section on your skills thats called “learnable prestige classes” and edit it to your liking.
  7. [Optional] Check this “Items > Resources” folder for an example item that allows a player to acquire a specific prestige class.
  8. [Optional] Check your player prefabs for the new “Prestige Class” setting to allow your players to start the game with a prestige class already.

Screenshot


Extra

  • A player can always have just one single prestige class. When acquiring a new one, the old one is replaced.
  • It makes sense to reward players with a prestige class item when completing a quest. In addition, the UCE Traits AddOn allows players to choose a prestige class at the beginning of the game.
  • The “learnable prestige classes” option on skills limits what classes are allowed to learn/upgrade that skill. It does not affect usage!
  • The “usage requirements -> allowed prestigage classes” limits the usage/activation/equip of items and skills. It does not affect learning or acquisition!
  • Note that all “interaction requirements” on other AddOns can be limited to a prestige class as well (e.g. you can make prestige class based teleporters)

Support the IndieMMO Team Today!

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.