User:Xudojnik

From The Battle for Wesnoth Wiki
Revision as of 18:02, 28 July 2012 by Xudojnik (talk | contribs) (Zombie Apocalypse Engine)

[edit]WML Tags

A:

abilities, about, achievement, achievement_group, add_ai_behavior, advanced_preference, advancefrom, advancement, advances, affect_adjacent, ai, allied_with, allow_end_turn, allow_extra_recruit, allow_recruit, allow_undo, and, animate, animate_unit, animation, aspect, attack (replay, weapon), attack_anim, attacks (special, stats), avoid;

B:

base_unit, background_layer, berserk, binary_path, break, brush;

C:

campaign, cancel_action, candidate_action, capture_village, case, chance_to_hit, change_theme, chat, checkbox, choice, choose, clear_global_variable, clear_menu_item, clear_variable, color_adjust, color_palette, color_range, command (action, replay), continue, core, credits_group, criteria;

D:

damage, damage_type, death, deaths, default, defend, defends, defense, delay, deprecated_message, destination, difficulty, disable, disallow_end_turn, disallow_extra_recruit, disallow_recruit, do, do_command, drains, draw_weapon_anim;

E:

editor_group, editor_music, editor_times, effect, else (action, animation), elseif, endlevel, end_turn (action, replay), enemy_of, engine, entry (credits, options), era, event, experimental_filter_ability, experimental_filter_ability_active, experimental_filter_specials, extra_anim;

F:

facet, facing, fake_unit, false, feedback, female, filter (concept, event), filter_adjacent, filter_adjacent_location, filter_attack, filter_attacker, filter_base_value, filter_condition, filter_defender, filter_enemy, filter_location, filter_opponent, filter_own, filter_owner, filter_radius, filter_recall, filter_second, filter_second_attack, filter_self, filter_side, filter_student, filter_vision, filter_weapon, filter_wml, find_path, fire_event, firststrike, floating_text, fonts, for, foreach, found_item, frame;

G:

game_config, get_global_variable, goal, gold, gold_carryover;

H:

harm_unit, has_ally, has_attack, has_unit, has_achievement, have_location, have_unit, heal_on_hit, heal_unit, healed_anim, healing_anim, heals, hide_help, hide_unit, hides;

I:

idle_anim, if (action, animation, intro), illuminates, image (intro, terrain), init_side, insert_tag, inspect, item, item_group;

J:

jamming_costs, join;

K:

kill, killed;

L:

label, language, leader, leader_goal, leadership, leading_anim, levelin_anim, levelout_anim, lift_fog, limit, literal, load_resource, locale, lock_view, lua;

M:

male, menu_item, message, micro_ai, missile_frame, modification, modifications, modify_ai, modify_side, modify_turns, modify_unit, modify_unit_type, move, move_unit, move_unit_fake, move_units_fake, movement_anim, movement costs, movetype, multiplayer, multiplayer_side, music;

N:

not, note;

O:

object, objective, objectives, on_undo, open_help, option, options, or;

P:

part, petrifies, petrify, place_shroud, plague, poison, post_movement_anim, pre_movement_anim, primary_attack, primary_unit, print, progress_achievement, put_to_recall_list;

R:

race, random_placement, recall (action, replay), recalls, recruit, recruit_anim, recruiting_anim, recruits, redraw, regenerate, remove_event, remove_item, remove_object, remove_shroud, remove_sound_source, remove_time_area, remove_trait, remove_unit_overlay, repeat, replace_map, replace_schedule, replay, replay_start, reset_fog, resistance (ability, unit), resistance_defaults, resolution, resource, return, role, rule;

S:

save, scenario, screen_fade, scroll, scroll_to, scroll_to_unit, secondary_attack, secondary_unit, section, select_unit, sequence, set_achievement, set_extra_recruit, set_global_variable, set_menu_item, set_recruit, set_specials, set_variable, set_variables, sheath_weapon_anim, show_if (message, objective, set_menu_item), show_objectives, side, skirmisher, slider, slow, snapshot, sound, sound_source, source (replay, teleport), special_note, specials, split, stage, standing_anim, statistics, status, store_gold, store_items, store_locations, store_map_dimensions, store_reachable_locations, store_relative_direction, store_side, store_starting_location, store_time_of_day, store_turns, store_unit, store_unit_defense, store_unit_defense_on, store_unit_type, store_unit_type_ids, store_villages, story, swarm, sub_achievement, switch, sync_variable;

T:

target, team, teleport (ability, action), teleport_anim, terrain, terrain_defaults, terrain_graphics, terrain_mask, terrain_type, test, test_condition, test_do_attack_by_id, text_input, textdomain, theme, then, tile, time, time_area, topic, toplevel, trait, transform_unit, traveler, true, tunnel;

U:

unhide_unit, unit (action, scenario), unit_overlay, unit_type, unit_worth, units, unlock_view, unpetrify, unstore_unit, unsynced;

V:

value, variable, variables, variant, variation, victory_anim, village, vision_costs, volume;

W:

while, wml_message, wml_schema;

Z:

zoom;

I know Wesnoth from version 1.1.2a. This is really perspective game not only as strategy, but as RPG too. Large world, filled by history, epic battles, heroes and factions, is perfect for creating RPG. It's not so hard because Wesnoth have simple language, what support wide variety of events, easy way to define dialogs, items, forum and Wiki, where always can be found answer for any question.

Zombie Apocalypse Engine

This is a framework for Zombie-survival maps. I'm going to add following features:

  • Fix animations. Move animation definition to database.
  • Restore "knokback" weapon special
  • Make load of core database optional - split it to two events: filling database by data, linking tables
  • Flexible power-ups

WesMMO

To play it (now only in theory):

    • Download WesMMO era.
    • Download any map, designed for WesMMO.
    • Create game in lobby.
    • WesMMO era will automatically use your account.
    • Now choose any three units from your account or create new and play.
    • Persistent data will be stored at the end of each turn

Character is a "team" of three units. Each unit have own stats, small inventory and spellbook.

Stats
Stamina - increases your hitpoints. Each point of stamina should increase survivalalibity of unit for an average amount of damage, given by 1 strength or agility, multiplied by 6.
Strength - increases your melee damage and armor contribution from items.
Speed - increases your movement points.
Agility - increase your ranged damage and defense on each type of terrain.
100 * A / (A + 30) 60% Defence at 45 agility
100 * A / (A + 20) 60% Defence at 30 agility
100 * A / (A + 10) 60% Defence at 15 agility
Intellect - increase magical potence of unit in some ways
Inventory
Melee Weapon - affects melee combat: multiplies damage from strength and number of strikes.
Ranged Weapon - affects ranged combat: multiplies damage from agility and number of strikes.
Amulet - affects base stats, magical resistances and magical potency of unit
Body Armor - affects base stats, all resistances and defenses.
Boots - affects base stats and multiplies speed of unit.
Helm - affects melee resistances and magical potence of unit.

Free slots are shared between all units on the gamefield. Each side had it own free slot inventory. I don't like this but I have no way to do it personal. Virtual data about them should be stored in structure "character[<side>]..."

free_slot item_id
item_type

Virtual data about units will be stored in structure "character[<side>].unit[<unit id>]..." Each item have it's own stats. Stats are directly named.

Content of "unit" structure.

inv body_item_id
boots_item_id
head_item_id
amulet_item_id
melee_item_id
ranged_item_id
body_user_name
boots_user_name
head_user_name
amulet_user_name
melee_user_name
ranged_user_name
body 0 - stamina
1 - strength
2 - agility
3 - pierce
4 - blade
5 - blow
6 - arcane
7 - fire
8 - cold
boots 0 - stamina
1 - strength
2 - agility
3 - speed
4 - speed_multiplier
head 0 - intellect
1 - pierce
2 - blade
3 - blow
amulet 0 - intellect
1 - stamina
2 - arcane
3 - fire
4 - cold
melee 0 - strength_multiplier
1 - base damage
2 - speed
3 - type
4 - defense
ranged 0 - agility_multiplier
1 - base damage
2 - speed
3 - type

Class should not determine defenses and resistances

class 0 - stamina
1 - strength
2 - agility
3 - speed
4 -intellect
buffed 0 - strength
1 - agility
2 - speed
3 - pierce
4 - blade
5 - blow
6 - arcane
7 - fire
8 - cold
9 - hitpoints_multiplier
10 - damage_multiplier
11 - speed_multiplier
12 - defense
Spell system
Each class have some predefined spells. In most cases they are not simple "damage unit X for Y hp". That's why they are the greatest headache for me.
Each unit can use it's spell once per turn.
There are no limit of uses through whole scenario.

Each item has it own's id. This ID is the key to macro what will apply effect of item stats to unit structure. Data about it will be stored inside WesMMO era. That allows me to implement 'inventory slots'. Players will carry unused items in them.

Persistent data
amulet_item_id_<unit index>
body_item_id_<unit index>
boots_item_id_<unit index>
class_name_<unit index>
head_item_id_<unit index>
level_<unit index>
melee_item_id_<unit index>
ranged_item_id_<unit index>
total_characters
total_free_slots
free_slot_item_type_<slot number>
free_slot_item_id_<slot number>

I will add to the Era thread sample feedback:

1) What version of Wesnoth, WesMMO and which scenario have you played?
2) How difficult did you find the scenario? (1-10)
3) How clear did you find the scenario objectives?
4) How clear and interesting did you find the dialog and storyline of the scenario?
5) What were your major challenges in meeting the objectives of the scenario?
6) How fun do you think the scenario is? (1-10)
7) What, if any, are changes you would have made to the scenario to make it more fun?
8) Was there any event that caused you to lose the game and forced you to restart the game?
9) WesMMO needs new title. Propose your opinion about it. (optional)
10) How convenient do you think the UI is (inventory, trade, creation dialogs)? (1-10)
11) What, if any, are changes you would made to the UI to make it more convenient?
12) How balansed did you find the units? (1-10)
13) Name the most owerpowered unit. Why does you name it?
14) What is your favorite unit? Why?
15) What, if any, are changes you would made to units to make game more fun?
Thoughts:

Ideas:

  1. situation: players A,B,C,D starts the game. player B leaves game before it ends. spectator E (player A) takes control of units B. players A,E,C,D ends the game and information about their units is stored to persistent. player E gets units of player B.
  2. suggestion: Best items should kill much time before player get them, but players should get something each time they play this game. Ways to reach this objective:
    • 1) Add "random stats" to items. Then item drops, RNG choose stats on them between predefined sets. 1/4 of randem stat set (RaSS) should be awesome and 1/4 should be real crap.
    • 2) Add "crafted items". Players should collect some resourses and get to place where they can craft this item.
  3. Itemisation(1). WesMMO will be published by patches. In each patch I will add some new items and functions to players. Items added in new patch should be better than items added in previous patch. But difference should not be enormous.
  4. levelling(1). I would not change standart mechanic of XP colection of BfW. Each player have 3 unit, what allows them to prapare and perform last-hit for any unit. Levelling shouldn't make items of this patch worster.
  5. Levelling(2). Data, stored in unit.class[], should contain multipliers of stats. Later this will be used to recalculate stats of unit.
  6. Itemisation(2). There are three items: A(require 1-3 of X), B(require 2-5 of X), C(require 4-8 of X). While player have 3 X, he can't share A and B to others if he get them and can not use C. But when he collect 4 X, he can share A, can't share B and can use C.
  7. Crafted items++. If craft of new items will require resourses from old patch, old maps will become outdated only if I will want this.
  8. Itemisation(3). Items should have requirments by level.
  9. Levelling(3). There should be a level cap in each patch.
  10. Itemisation(4). Items can have no requirements by level, but stats on item can be influensed by level.
  11. Itemisation(5). Add "mantle". It will have +int, +stam and magical resistances. Body no longer affect magical resistences and stam.
  12. Development(1). Add various "count" functions to collect statistical data about each option in dialogs. This data should be stored in special namespace. Then this will be done, I should add to feedback thread request to put file with this data to the forum.
  13. UI(1). Frankensteining. Each equipped item will have it's own overlay on unit. During the fights overlays aren't shown. Thats why I should create attack and defend animations what will look like cloud with "Ouch" messages jumped out of it.
  14. UI(2). Fast backpack browser
+-----------------------------+
|  Backpack browser
| +-------------------------+ |
| | Back
| +-------------------------+ |
| +-------------------------+ |
| | Next 10(5?)
| +-------------------------+ |
| +-------------------------+ |
| | Previous 10(5?)
| +-------------------------+ |
| +-------------------------+ |
| | item_slot) item_name id | |
| +-------------------------+ |
| +-------------------------+ |
| | 2) Cracked Bow <id>
| +-------------------------+ |
+-----------------------------+
  1. UI(3). Resourse browser

WesMMO. Theorycraft

Main questions
1) I have some 'slots' of equipped items. Why player should fill all this slots?
2) I have some 'stats' on items. Why player should concentrate on some stats and ignore other?
3) There are some 'classes' of characters. How to make real difference between any two classes?
4) How to make class system where anticlasses will exists.
Base statements
Player control 3 units.
Units have around 5 equipment 'slots' and few stats.
Any damage dealing should be based on stadart battle system.
There are around 5-10 different classes.
Each class have at least 2 good, 2 worst and 2 average attack types and defenses.
Item can not affect 2 good or 2 worst stats for any class at once.
Bonuses from items should not break class balance.
Items are not able to affect all stats.
All characters have same movement cost and base defence at any type of terrain.
Any character is able to wear any item he gets.
Stat system

Handling good/average/worst stats for any class. Each class will have set of modifiers, what will affect resistances. It can be equal to 1 (good), 2 (average), 4 (worst).

main formula of effect diminishing:
y = x / (a * x + 20) * 100%, where
x - value from gear,
a - class modifier.

According to this formula, there are 3 tier of armor exists: 1 tier: gear give 1-20 value (5-50;5-33;5-20) 2 tier: gear give 20-40 value (50-66;33-40;20-22) 3 tier: gear give 40-80 value (66-80;40-45;22-23) The following stats are good for any class:

hitpoint amount. Even mages with ranged combat should stand face-to-face to it's current opponent. Noone can one-shot any other class with full hp. Thats why mage surely will get some amount of damage from counterattack.
movepoints amount. Difference in 1 point of movement make one unit unreachable by other.

There are 5 equippable slots:

1 - affects magical combat
2 - affects defences
3 - affects melee combat
4 - affects ranged combat
5 - affects movement

If item affects combat, it always says how many strikes you have and how much damage you will deal with this item. This should also be influenced by class, in some way, to make sure, what character A can not be owerpowered just because enemy have wrong and this class - right weapon.

How can I make difference for class A between weapon a and b?

1) Class multiplier. Multipliers for damage is not a good idea.
2) Gear hacking. This way is rather hard, but possible.
3) Weapon blocking. Easy as pie.

How much classes I can create? There are 6 types of resistance. Let's imagine what all stats have counterstats. One cannot be good if other is not worst. There is absolutely no difference about deciding how to divide them, this also can be changed later via name-swapping. There is my division:

blade - fire
pierce - arcane
blow - cold

There are 11 combination of stats after this rule. Thats should be enough, I think. At this moment, i'll take 3 of them.

Class: good (worst) [average]
A: Blade + blow (Fire - cold) [arcane + pierce]
B: Pierce + fire (Arcane - blade) [arcane + blade]
C: Arcane + cold (Blow - pierce) [blow + pierce]

Class cannot wield weapons, what deal 'worst' type of damage. Race "who deal first attack" is result of this. And there should not be any other limits. Players should decide what to do next without my help.

Damage and number of strikes completely influenced by weapon. That means, what weapons of same tier, will have same damage output.

Blade-based melee weapons are fast. Ex: 2-6
Blow-based melee weapons are true average. 3-4 or 4-3
Only arcane melee weapon allowed. it's speed and damage is not good, but it is not influenced by common physical miss chance.
Pierce weapons are usually ranged and rather fast. 3-4 or 2-6.
Fire magic is one-shottable. 12-1 and cannot miss, of cource.
Cold magic is a pain. 1-12.

There are 2 group of stats:

Active
Passive

There are two active stat: hitpoint and damage, and two passive: dodge chance and absorbition. And total list of stats will look like this:

+--------------------+---+
| stat               |PPL|
+--------------------+---+
| hitpoints          |60 |
+-------+------------+---+
| blade |            |   |
| blow  |            |   |
| pierce|absorbitions| 5 |
| arcane|            |   |
| fire  |            |   |
| cold  |            |   |
+-------+------------+---+
| blade |            |   |
| blow  |            |   |
| pierce|   power    |10 |
| arcane|            |   |
| fire  |            |   |
| cold  |            |   |
+-------+------------+---+
| avoidance          | 4 |
+-------+------------+---+

Absorbitions have limits in 12 levels. Let's imagine, what absorbition capped at 75% value. According to main formula of effect diminishing, character with a=1 will achieve 75% mitigation at x=60. And 60 / 5 = 12.

Look to this table:

x	value		difference	value		difference	value		difference
0	0				0				0	
5	16,66666667	16,66666667	12,5		12,5		20		20
10	25		8,333333333	16,66666667	4,166666667	33,33333333	13,33333333
15	30		5		18,75		2,083333333	42,85714286	9,523809524
20	33,33333333	3,333333333	20		1,25		50		7,142857143
25	35,71428571	2,380952381	20,83333333	0,833333333	55,55555556	5,555555556
30	37,5		1,785714286	21,42857143	0,595238095	60		4,444444444
35	38,88888889	1,388888889	21,875		0,446428571	63,63636364	3,636363636
40	40		1,111111111	22,22222222	0,347222222	66,66666667	3,03030303
45	40,90909091	0,909090909	22,5		0,277777778	69,23076923	2,564102564
50	41,66666667	0,757575758	22,72727273	0,227272727	71,42857143	2,197802198
55	42,30769231	0,641025641	22,91666667	0,189393939	73,33333333	1,904761905
60	42,85714286	0,549450549	23,07692308	0,16025641	75		1,666666667

2'nd column shows mitigation value at a = 2, 4'th at a = 4 and 6'th at a = 1. If you calculate average value of all difference columns and turn float value to int, you get 4. This is Avoidance PPL. There are also Soft cap and hard cap of mitigation. Soft cap means what further collecting of this stat is useful, but player can spend training points into something more valuable. Hard cap means what further improvement is not recommended (by me of course).

for a = 1. SC = 30. HC = 60
for a = 2. SC = 20. HC = 40.
for a = 4. SC = 10. HC = 20.

Avoidance should give static value, because it is not depend from character class. And it should be capped too. According to wesnoth phylosophy, defence should not be higner than 60. 60 / 4 = 15 levels of stat.

Each character have 2 good stat, 2 average, 2 bad and some avoidance value. To HC them, player should level it up 2 * 12 + 2 * 8 + 2 * 4 + 16 = 64 times. And some infinite number times to build damage and hitpoints. Actually I think that player should build SC value of all defences or HC good stat and without (!) defence, build hitpoints or damage, depending from purpose of this unit. This is around 30 or 40 levels up. How much experience should character have to level up fast enough to see all it's powers?