Page 6 of 8

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 09:28
by Kestrel
Confringo would be great if it covered the 20-100 damage range from lvl1 to lvl20(cap the damage if you have to),
it would start out comparable to slingshot and dagger and scale up to short bow and scythe levels.

Being able to go through a dozen mobs before having to rest would be the ideal downtime,
a mage with infinite mana reserves would feel a bit dull to play.

I'd be neat if there was a flat 20-40hp healing spell you could use from the start like confringo, for variety's sake. :lol:

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 11:22
by Cassy
Kestrel wrote:Confringo would be great if it covered the 20-100 damage range from lvl1 to lvl20(cap the damage if you have to),
it would start out comparable to slingshot and dagger and scale up to short bow and scythe levels.
IMO we shouldn't consider Scythe (also not Short Sword) DMG.
Those are available far too early in the game and make it too easy for those levels.
Weapons with DMG between Dagger and Scythe should fill that hole.

Same counts for Forest Bow: available too early in game.

I think those should be in the next steps of balancing the game.

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 12:39
by Kestrel
Cassy wrote:IMO we shouldn't consider Scythe (also not Short Sword) DMG.
Those are available far too early in the game and make it too easy for those levels.
Weapons with DMG between Dagger and Scythe should fill that hole.

Same counts for Forest Bow: available too early in game.

I think those should be in the next steps of balancing the game.
Well, I was only thinking about how confringo would work with the current balance,
just trying to work with what's already there.

If the content for new weapons is there, then sure that would work.

But if you're really going to go down the "balance the entire game" route,
you're going to have to do the math eventually.
How are the calculations behind everything done again? :alt-4:

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 14:21
by Kestrel
*starts digging the source code*

対象のHPを返す(汎用)
戻りは整数で0以上

Dude, I'm just gonna go write a roguelike or something.

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 16:07
by wushin
Kestrel don't be freaked by the comments. Those are legacy but the prior devs left them as comments.

Most of the weapon stuff is in ./src/map/battle.cpp or ./src/map/pc.cpp or ./src/map/mob.cpp

The wand is unique as it's Magic and the Mana use is a function "outside" of magic.

Wand Formula:
set @WandCost, (@Wand * ((MaxSp / 10) + (BaseLevel / 10)));
The Wand has a @Wand of 1 and the Wooden Staff has a @Wand of 2.

https://github.com/wushin/tmwa-server-d ... k_wand.txt

I've iterated over a few formulas but I still can't find one I like.

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:16
by Kazenawa
wushin wrote:[...]The wand is unique as it's Magic and the Mana use is a function "outside" of magic.

Wand Formula:
set @WandCost, (@Wand * ((MaxSp / 10) + (BaseLevel / 10)));
The Wand has a @Wand of 1 and the Wooden Staff has a @Wand of 2.
[...]

I've iterated over a few formulas but I still can't find one I like.
Why does the wooden staff (which is better than the wand) consumes more mana ? Does it inflict more damage ?
What is MaxSp ?

Edit : Also, why do you want a linear function ? Wouldn't you somehow limit the mana used by #confringo after a certain level ? What about the corresponding damages ? If it consumes more mana, it has to inflict more damage. Damage is not shown in the function.

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:32
by gumi
the wand has a power of 1 and the staff a power of 2.
When you attack it does 1 * (power / 3) for the wand and 2 * (power / 3) for the staff.
The power variable depends on your int
Kazenawa wrote:Damage is not shown in the function.
This is because the check_wand.txt file only handles the amount of mana, the real logic is in /world/map/conf/magic-level1.sex

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:34
by Kazenawa
meko wrote:the wand has a power of 1 and the staff a power of 2.
When you attack it does 1 * (power / 3) for the wand and 2 * (power / 3) for the staff.
The power variable depends on your int
Then how does the power(int) function look like ?

Edit :Because, based on this, then the staff consumes twice the mana to do two times more damage than the wand does. This is not really useful, since it means you can only do less shots with the staff. The difference is then useful only for new players (not many mana points), or for low life points mobs.

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:39
by gumi
Kazenawa wrote:
meko wrote:the wand has a power of 1 and the staff a power of 2.
When you attack it does 1 * (power / 3) for the wand and 2 * (power / 3) for the staff.
The power variable depends on your int
Then how does the power(int) function look like ?
Spoiler:
(SET spellpower
(+ spellpower
(*
(+
(skill caster MAGIC)
(skill caster school))
10)))
It does ((MAGIC LEVEL + SCHOOL LEVEL) * 10) + spellpower
the spellpower variable is handled by the server itself and depends on your int

The initial spellpower increases for the LIFE and NATURE schools with the spouse system:
if the target of your spell is your spouse it does + 200
if you also have a wedding ring equipped it does another + 50
and if your spouse has it too it does another + 50

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:41
by Kazenawa
meko wrote:
Kazenawa wrote:
meko wrote:the wand has a power of 1 and the staff a power of 2.
When you attack it does 1 * (power / 3) for the wand and 2 * (power / 3) for the staff.
The power variable depends on your int
Then how does the power(int) function look like ?
Spoiler:
(SET spellpower
(+ spellpower
(*
(+
(skill caster MAGIC)
(skill caster school))
10)))
It does ((MAGIC LEVEL + SCHOOL LEVEL) * 10) + spellpower
In this case the spellpower variable is 0
Here, MAGIC LEVEL = int ? Or does it corresponds to general magic level ?

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:44
by gumi
MAGIC LEVEL is your main magic level, not the one of a school; it can be 0, 1 and 2 depending on how many times you touched the mana seed

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:47
by Kazenawa
meko wrote:MAGIC LEVEL is your main magic level, not the one of a school; it can be 0, 1 and 2 depending on how many times you touched the mana seed
Hum ok, got it. SCHOOL LEVEL is the same but for the different magic schools right (basically 0, 1 or 2 then) ? So which variable here depends of int ?

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:48
by gumi
Kazenawa wrote:Hum ok, got it. SCHOOL LEVEL is the same but for the different magic schools right (basically 0, 1 or 2 then) ? So which variable here depends of int ?
spellpower does but it is handled by tmwa (the server), not the server-data

https://github.com/themanaworld/tmwa/se ... spellpower

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:51
by gumi
int spellpower = int power = caster->matk1;

matk1 is your m.atk as seen in your status window in manaplus


to sum it all when you attack with the staff it does:
2 * ((((MAGIC LEVEL + SCHOOL LEVEL) * 10) + M.Atk) / 3) damage

and with the wand it is the same but replace 2 by 1

Re: Moving Tutorial to Candor and Closer to Hurnscald [Test]

Posted: 05 Jan 2015, 18:56
by Kazenawa
meko wrote:
Kazenawa wrote:Hum ok, got it. SCHOOL LEVEL is the same but for the different magic schools right (basically 0, 1 or 2 then) ? So which variable here depends of int ?
spellpower does but it is handled by tmwa (the server), not the server-data

https://github.com/themanaworld/tmwa/se ... spellpower
meko wrote:int spellpower = int power = caster->matk1;

matk1 is your m.atk as seen in your status window in manaplus
Hence the difficulty to synthesize the function... Hmmm

Basically, we can then only change the spell cost right ? Not the damage it deals ?
What is the MaxSp parameter ?


Offtopic, just to know, which kind of functions does the server support ? Exponentials, logarithms, trigonometrics ?