RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon

Age System 1.3

No permission to download
Introduction

Here is another release made for role-playing. It makes every character of shard to have an age and get older. This could be an way to introduce perma-death and family trees on the shard.

Features

# Drag & Drop
# Automatic age changing
# Attributes affected by age
# Display age in the name
# Population statistics
# Easy customization
# Clean Reset/Uninstall

Installation

Drop AgeSystem.cs anywhere on your Scripts folder.
Login with administrator account and type [VerifyAge.
Doing this, every character will receive and Age Change Deed.
Use that to select your starting age, and tell the players to do the same.

Configuration

You can change the system config at the top of the script:

C#:
bool AutoRenewAgeEnabled = true; // Should the characters get older through time automatically?
 
TimeSpan AutoRenewDelay = TimeSpan.FromDays( 15 ); // How many Earth Days are equivalent to One Year for characters?
 
TimeSpan AutoRenewCheck = TimeSpan.FromMinutes( 30 ); // Check for new birthdays every 30 minutes.
 
bool AgeStatModEnabled = true; // Character's stats (Str,Dex,Int) are affected by the age?
 
double maxBonus = 15;  // What is the bonus when the characters are at their best condition?
 
double topStrAge = 35; // At what age the characters have the best strength condition?
 
double topDexAge = 20; // At what age the characters have the best dexterity condition?
 
double topIntAge = 50; // At what age the characters have the best intelligence condition?

Commands

Administrator's commands:

NewAge - Makes all characters become one year older.

SetAge - Sets the age of a character to the specified value.

VerifyAge - Checks the age of all characters, sends a warning and a Age Change Dee to those who have not recorded their age, and shows statistics on the population's age.

ClearAgeSystem - Removes all tags and items of the Age System from your shard. After that you can re-enable the system or delete the script from RunUO folder and restart the server.

Player's command:

Age - Say your age to everyone around and toggles the age being shown in name. Also place an Age Change Deed in your backpack, if you don't have the age recorded yet.


Not showing age.


Showing the age in name.

Items

There are two items in this package (which functions can be easily changed on script):



Age Change Deed: Allows the player to record their age. They must choose between a minimum and maximum value. (Default is Min: 18 Max: 40). It can't be moved, so the players can't give/sell it to others.



Rejuvenation Potion: Makes the character younger. The effect is variable. (Default: reduces from 1 to 5 years). May be given on quests, or you can place it on vendors.

Optional: Showing the age under the name



If you want the age to be permanently shown under the character's name, you should add a piece of code to PlayerMobile.cs.

Find the line: public override void GetProperties( ObjectPropertyList list )

Then add the following code right AFTER the "base.GetProperties( list );" line:

C#:
if ( ((Account)this.Account).GetTag("Age of " + (this.RawName)) != null )
    list.Add( "{0} Years Old", ((Account)this.Account).GetTag("Age of " + (this.RawName)) );

Optional: Integration with Look Command

It's also possible to integrate the Age System with the Look Command.

Download the Look Command for Age System here.

Here goes the examples:


Age being shown under your description.


Age being shown under description of a targeted character.
  • Like
Reactions: fcondon
Author
Felladrin
Downloads
84
Views
435
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Felladrin

Top