==
==
= SuperHero Update ==
==
=
After some work, I finally made
Superhero Customizable Heroes System.
Ok, I'm going to explain how it's working.
All system based on main function marks, SuperHero functions and it's parameters.
That's few symbols that you should know for start:
1
2
3
4
5
:o:	[b]"#"[/b] - [i]SuperHero function verification.[/i]
:o:	[b]"="[/b] - [i]Separates SuperHero function and it's parameters.[/i]
:o:	[b]":"[/b] - [i]Separates SuperHero functions.[/i]
:o: 	[b]"~"[/b] - [i]Separates function parameters.[/i]
:o:	[b]">"[/b] - [i]Hero leveling verification[/i]
And current main function type marks:
1
2
:o:	[b]#addhero[/b] - [i]Sets line for hero adding.[/i]
:o:	[b]#path[/b]=[[i]PATH[/i]] - [i]Opens File (path) of other heroes file.[/i]
In case, that's some SuperHero functions.
(There is 19 functions in the moment)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
_-= [b]Basics[/b] ; [i]Required ones![/i] =-_
[b]:o:	#name[/b]=[[i]NAME[/i]] [i]- Sets hero name.[/i]
[b]:o:	#info[/b]=[[i]INFO[/i]] [i]- Sets hero information (in menu).[/i]
[b]:o:	#point[/b]=[[i]PT[/i]] [i]- Sets hero points requirement.[/i]
[b]:o:	#level[/b]=[[i]LVL[/i]] [i]- Required level for hero.[/i]
_-= [b]Simple SH Functions[/b] =-_
[b]Note[/b]: [i]Negative numbers works.[/i]
[b]:o:	#health[/b]=[HP] - [i]Gives health on spawn.[/i]
[b]:o:	#armor[/b]=[AP] - [i]Gives armor on spawn.[/i]
[b]:o:	#speed[/b]=[SP] - [i]Gives speed on spawn.[/i]
[b]:o:	#item[/b]=[ITEM ID] - [i]Gives item on spawn.[/i]
[b]:o:	#noreload[/b]=[WPN ID] - [i]No reloading for certain weapon id, 0 - for all weapons.[/i]
[i]And more...[/i]
_-= [b]Advanced SH Functions[/b] =-_
[b]Note:[/b] [SEC] means time between multiple effect.
[b]:o:	#re_health[/b]=[HP]~[SEC] - [i]Multiple healing in X seconds.[/i]
[b]:o:	#re_armor[/b]=[AP]~[SEC] - [i]Multiple armor repairing in X seconds.[/i]
[b]:o:	#re_item[/b]=[ITEM ID]~[SEC] - [i]Multiple item equip in X seconds.[/i]
[b]:o:	#re_money[/b]=[MN]~[SEC] - [i]Multiple money income in X seconds.[/i]
[b]:o:	#nb_health[/b]=[HP]~[SEC]~[RADIUS] - [i]Nearby units healing in X seconds. RADIUS size in pixels.[/i]
[b]:o:	#nb_armor[/b]=[AP]~[SEC]~[RADIUS] - [i]Nearby units armor repairing in X seconds. RADIUS size in pixels.[/i]
[b]:o:	#nb_money[/b]=[MN]~[SEC]~[RADIUS] - [i]Nearby units money income in X seconds. RADIUS size in pixels.[/i]
[b]:o:	#nb_damage[/b]=[DMG]~[SEC]~[RADIUS] - [i]Deals damage for your enemy in X seconds. RADIUS size in pixels.[/i]
[i]And many more functions.[/i]
=====
Let's Take Some Practice! =====
Okay, first example.
We are going to make Superman witch is going to give us +20 health and requires 2nd level and 1 point.
1
#addhero : #name = Superman : #level = 2 : #info = Extra Health (+20) : #point = 1 : #health = 20
It's really simple this time, so probably there is nothing to explain.
In menu SuperHero button looks like that
(current version)
SuperHero prints that everything is fine and superhero added successfully.
=====
Debug, Mistakes On Making Heroes =====
New configuration system is pretty stable, since player heroes variables in list are temporary.
So, I will show example of what
you shouldn't make
Skipping
":"
1
#addhero #name = Superman #level = 2 #info = Extra Health (+20) #point = 1 #health = 20
Console output:
-->
[SH] SuperHeroes Config Error: "#addhero" (Not Enough Parameters)
Skipping
"="
1
#addhero : #name Superman : #level 2 : #info Extra Health (+20) : #point 1 : #health 20
Console output:
-->
[SH] SuperHeroes Config Error: "#name" (Not Enough Parameters)
-->
[SH] SuperHeroes Config Error: "#level" (Not Enough Parameters)
-->
[SH] SuperHeroes Config Error: "#info" (Not Enough Parameters)
-->
[SH] SuperHeroes Config Error: "#point" (Not Enough Parameters)
-->
[SH] SuperHeroes Config Error: "#health" (Not Enough Parameters)
Many other mistakes doesn't effect SuperHero stability as well.
There are much more interesting things in next SuperHero.