Moving Tutorial to Candor and Closer to Hurnscald [Test]

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Kestrel
Peon
Peon
Posts: 28
Joined: 21 Jan 2013, 13:20

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

Post 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:
User avatar
Cassy
TMW Adviser
TMW Adviser
Posts: 791
Joined: 09 Mar 2013, 09:39
Location: ♥ Fluffyland ♥
Contact:

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

Post 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.
Main characters:
Lv.94 - Cassy - speedarcher on dark path, bunny-wannabe, would like to ride on a Mouboo once...
Lv.95 - Biqcassy - mage on light path, addicted to her Fluffy Hat, love-hates Fallens, really misses Confused Tree...
Lv.70 - Simca. - dreams of becoming a speedarcher on light path, still has a lot to learn...

Personal development overview | priorities | wiki to-do | wiki profile incl. other characters

[20:24:59] <Cassy> debug npc in crypts!
[20:25:02] <Cassy> just a joke...
[20:25:08] <wushin> DONT DO THAT
[20:25:10] <o11c> !slap Cassy
Kestrel
Peon
Peon
Posts: 28
Joined: 21 Jan 2013, 13:20

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

Post 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:
Kestrel
Peon
Peon
Posts: 28
Joined: 21 Jan 2013, 13:20

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

Post by Kestrel »

*starts digging the source code*

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

Dude, I'm just gonna go write a roguelike or something.
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

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

Post 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.
The secret to getting all the important stuff done is doing nothing.
User avatar
Kazenawa
Novice
Novice
Posts: 189
Joined: 18 Dec 2011, 09:24

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

Post 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.
User avatar
gumi
TMW Adviser
TMW Adviser
Posts: 797
Joined: 19 May 2014, 18:18

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

Post 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
Last edited by gumi on 05 Jan 2015, 18:34, edited 1 time in total.
User avatar
Kazenawa
Novice
Novice
Posts: 189
Joined: 18 Dec 2011, 09:24

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

Post 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.
Last edited by Kazenawa on 05 Jan 2015, 18:43, edited 3 times in total.
User avatar
gumi
TMW Adviser
TMW Adviser
Posts: 797
Joined: 19 May 2014, 18:18

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

Post 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
Last edited by gumi on 05 Jan 2015, 18:47, edited 2 times in total.
User avatar
Kazenawa
Novice
Novice
Posts: 189
Joined: 18 Dec 2011, 09:24

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

Post 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 ?
User avatar
gumi
TMW Adviser
TMW Adviser
Posts: 797
Joined: 19 May 2014, 18:18

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

Post 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
User avatar
Kazenawa
Novice
Novice
Posts: 189
Joined: 18 Dec 2011, 09:24

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

Post 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 ?
User avatar
gumi
TMW Adviser
TMW Adviser
Posts: 797
Joined: 19 May 2014, 18:18

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

Post 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
User avatar
gumi
TMW Adviser
TMW Adviser
Posts: 797
Joined: 19 May 2014, 18:18

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

Post 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
Last edited by gumi on 05 Jan 2015, 18:57, edited 1 time in total.
User avatar
Kazenawa
Novice
Novice
Posts: 189
Joined: 18 Dec 2011, 09:24

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

Post 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 ?
Post Reply