diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-05-11 01:10:00 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-05-11 01:10:00 +0000 |
commit | 09443761bc3a8a194856d74d827a83b8aa499a1e (patch) | |
tree | 092cb542a6982fb75e30a216ef7828ebfd063e88 | |
parent | 1c4cd4a4008470a537e9cfbc2906972daa2b9126 (diff) | |
download | manaserv-09443761bc3a8a194856d74d827a83b8aa499a1e.tar.gz manaserv-09443761bc3a8a194856d74d827a83b8aa499a1e.tar.bz2 manaserv-09443761bc3a8a194856d74d827a83b8aa499a1e.tar.xz manaserv-09443761bc3a8a194856d74d827a83b8aa499a1e.zip |
Added more to scripting definition draft.
Added stats.txt (which will document the algorithms for calculating being
properties & statistics).
-rw-r--r-- | docs/scripting.txt | 62 | ||||
-rw-r--r-- | docs/stats.txt | 24 |
2 files changed, 66 insertions, 20 deletions
diff --git a/docs/scripting.txt b/docs/scripting.txt index ab57952a..8786e7a2 100644 --- a/docs/scripting.txt +++ b/docs/scripting.txt @@ -1,23 +1,39 @@ -The Mana World Scripting Specification - DRAFT +The Mana World Scripting Specification - DRAFT v0.2 Generic scripting interfaces for various in-game objects. -SUBTOPIC DESCRIPTIONS: - Interface Functions - Interface functions are functions provided by the script - handler. These could range from getting information about - a player to increasing a players health. +Functions Library - provided by server scripting bindings. +Public Interface - public interface provided by script. +Public Variables - public variables provided by script. +Persistent Variabls - Variables which persist. - Functions: - Functions provided by the script for the game to call. +All prototypes are in a C like syntax. + +Global Function Library (accessible by all script types): + string getName(void) - Get name of player. + uint getX(void) - Get X position of player. + uint getY(void) - Get Y position of player. + string getMap(void) - Get map name. + uint getLevel(void) - Get player level. + uint getHealth(void) - Get current health of player using item. + uint getMaxHealth(void) - Get maximum health player can have. + uint getAttack(void) - Get attack stats of player. + uint getDefense(void) - Get defense stats of player. + uint getLuck(void) - Get luck stats of player. + uint getVitality(void) - Get vitality stats of player. + + void setHealth(uint hp) - Set player health points. + + void createItem(uint id) - Spawn/create item at player position. + void createBeing(uint id) - Spawn/create being at player position. Item Scripting: - Interface Functions: - Functions: - use() - Called when player uses the item. + Function Library: + Public Interface: + void use(void) - Called when player uses the item. - Variables: + Public Variables: int type - Type of item (weapon, armor, usable, etc.) *Special Properties* @@ -25,22 +41,28 @@ Item Scripting: int defense - Defense addition. int luck - Luck addition. int vitality- Vitality addition. - (These will add to the players statistical properties when equipped) + (These will add to the players statistical properties when equipped. + Note that they are not unsigned allowing negative properties.) ... + Persistent Variables: + Skill Scripting: - Interface Functions: - Functions: - use() - Called when player uses skill. + Function Library: + uint getSkillLevel(void) - Get level of skill. - Variables: + Public Interface: + void use(void) - Called when player uses skill. + Public Variables: + Persistent Variables: Being Scripting: - Interface Functions: - Functions: - Variables: + Function Library: + Public Interface: + Public Variables: + Persistent Variables: - nym
\ No newline at end of file diff --git a/docs/stats.txt b/docs/stats.txt new file mode 100644 index 00000000..73daed3c --- /dev/null +++ b/docs/stats.txt @@ -0,0 +1,24 @@ +The Mana World Statistics Specification - DRAFT v0.1 + +Currently this work is derived from work done on Wiki. This system +is simplified. Each being has core statistics which are used to +calculate the actual statistics which will be used when performing +actions in-game. + +Core Being Statistics: + level - + strength - + vitality - + dexterity - + intelligence - + luck - + +Being Derived Statistics: + health - 20 + (20 * vitality) + attack - 10 + strength + equipped weapon skill + defense - 10 + strength + equipped weapon skill + equipment defense bonuses + magic - 10 + intelligence + magic skill level + equipment magic bonuses + accuracy - 50 + dexterity + speed - dexterity + running skill + +-nym |