Mod idea: stats and levels in the Arena

User avatar
Thomason1005
Posts: 712
Joined: Sat Apr 20, 2013 7:44 am
Location: GerMany

Re: Mod idea: stats and levels in the Arena

Post by Thomason1005 » Tue Mar 11, 2014 2:37 pm

Cool ill add these once i have time (not before the we)

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Wed Mar 12, 2014 4:05 am

Man, I really wish I could help you more... I don't even have a machine on which to run OG though.
And good for the small steps. They mean that we have not stopped, which is the important thing.

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Fri Mar 14, 2014 3:50 am

At pg. 3
Endoperez wrote:Good point, Overgrowth might not have a way to track killer yet. Maybe the last character to deal damage to the dead guy? Maybe char id and time tick could be saved as character-specific variables. Closest is good enough for now.
Does the game keep track of the damage dealt by the player? Because in case we can simply say that if an enemy who has been damaged by the player dies (for whichever cause: fall, weapon thrown, another enemy), the player gets one kill.

User avatar
Thomason1005
Posts: 712
Joined: Sat Apr 20, 2013 7:44 am
Location: GerMany

Re: Mod idea: stats and levels in the Arena

Post by Thomason1005 » Fri Mar 14, 2014 4:05 am

Sehiro wrote:At pg. 3
Endoperez wrote:Good point, Overgrowth might not have a way to track killer yet. Maybe the last character to deal damage to the dead guy? Maybe char id and time tick could be saved as character-specific variables. Closest is good enough for now.
Does the game keep track of the damage dealt by the player? Because in case we can simply say that if an enemy who has been damaged by the player dies (for whichever cause: fall, weapon thrown, another enemy), the player gets one kill.
i dont think it should be a big problem with hand to hand combat, but fall damage and thrown weapons might become difficult
i wanted to do it last because the aschar.as is often updated with new alphas
i think the attacking player sends a message to the defending players script which then does the damage calculation (checks if it is blocked etc). If the character dies, it sends a message to the level script. We need to add the last character (his id) who has dealt damage to him to this message
to get this character we might have to additionally pass the characters id when attacking but i think thats already done
im on my pc again tomorrow, then i can check it and maybe do the changes

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Mon Mar 17, 2014 12:52 pm

Np if it's done last. I trust your knowledge about technicalities :)
I just thought about the kill-counter in a different way.
I meant, if the player has ever, in the course of all the battle, damaged a particular opponent, when this opponent dies for whichever reason, the player may get a kill or exp point. This way the counting of exp is not calculated on the numbers of killed but on the number of successfully damaged opponents. It's like marking an enemy with your id when you damage him and when he dies you get an exp point.
This implies the existence of some sort of log or system memory though, and I don't know if it exists. Reading this
Thomason1005 wrote:i think the attacking player sends a message to the defending players script which then does the damage calculation (checks if it is blocked etc). If the character dies, it sends a message to the level script.
the memory could both exist or not.
May this work somehow?

Edit: I am just throwning out an idea, hoping it makes you work less.

Edit2: I guess that for a first version of the mod, if the kill counter works just with hand to hand kills and not with weapon and fall kills it's not a problem.

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Tue Mar 25, 2014 3:42 am

Haz dis died? :p

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 4:41 am
Location: cold and dark and lovely Finland

Re: Mod idea: stats and levels in the Arena

Post by Endoperez » Tue Mar 25, 2014 8:15 am

Not quite yet, but it's admittedly not doing very well.

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Wed Mar 26, 2014 1:55 am

Wouldn't you feel upset by leaving this half-way there?
It would be like admitting to have tried and failed... And by what I've seen, I don't believe that any of the two of you belongs to the kind of people who would ever give up a challenge. Don't prove me wrong.

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 4:41 am
Location: cold and dark and lovely Finland

Re: Mod idea: stats and levels in the Arena

Post by Endoperez » Wed Mar 26, 2014 8:08 am

It would be an annoying nag, but unfortunately, I've come to accept that I won't be able to finish all the projects I've started.

I'm feeling much more energetic again, though - perhaps it's the sun. We get 6 more hours of daylight now, compared to the end of January. The sun is still up at 5 PM when I come from the school!

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Wed Mar 26, 2014 11:58 am

Well, let's hope it's sunny also in Germany and that the sun brings back some motivation to both of you.

User avatar
Thomason1005
Posts: 712
Joined: Sat Apr 20, 2013 7:44 am
Location: GerMany

Re: Mod idea: stats and levels in the Arena

Post by Thomason1005 » Sat Mar 29, 2014 6:39 am

Yeah i havent done anything lately...
maybe i can do some tomorrow

at least we have to put sth out thats working

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Sun Mar 30, 2014 6:09 am

Thomason1005 wrote:Yeah i havent done anything lately...
maybe i can do some tomorrow
Thank you man :D
Thomason1005 wrote:at least we have to put sth out thats working
Image

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 4:41 am
Location: cold and dark and lovely Finland

Re: Mod idea: stats and levels in the Arena

Post by Endoperez » Sun Mar 30, 2014 7:32 am

I'm back on my PC too, and could put some time on it. The latest files I have are from February, though.

I'll look at adding sliders into the stats menu.

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 4:41 am
Location: cold and dark and lovely Finland

Re: Mod idea: stats and levels in the Arena

Post by Endoperez » Sun Mar 30, 2014 9:08 am

progress_arenastats.png
progress_arenastats.png (14.32 KiB) Viewed 2084 times
I haven't tested it in OG yet, and I haven't figured out how to set the starting value to what it's supposed to be instead of '???' for "Points to Distribute", or "test" for the slider value buttons.

The sliders are still enabled, so you can cheat by simply moving the sliders. :P


Edit: disabling the sliders is easy, but Thomason, you should look into the logic of the increase buttons and canceling changes. Do you want to have nothing at all for canceling changes (easiest), a single "reset" button that cancels the changes that haven't been OK'd yet, or actual + and - buttons. The + and - buttons were simple to do, but seem rather complex for code - you have to take the minimum and maximum values into account, can't go below whatever your starting value was in a stat when you entered a screen, etc.
Attachments
march30th_sliders_arenamod.zip
The updated HTML and CSS files with my changes. Might break down some of your javascript stuff.
(2.14 KiB) Downloaded 53 times

User avatar
Sehiro
Posts: 302
Joined: Fri Sep 27, 2013 2:59 am
Location: Currently in the Lifestream

Re: Mod idea: stats and levels in the Arena

Post by Sehiro » Sun Mar 30, 2014 12:05 pm

Endoperez wrote:The sliders are still enabled, so you can cheat by simply moving the sliders. :P
Better leave them so if you want to test the values. If I may suggest, try to increase them at 200 and go in the arena at skill 80-90 (assuming the attributes listed in your image modify the parameters listed long ago like attack speed, knockback, damage, health etc).
If you can fight as easily as you would normally do at skill 1-10 in the arena, I guess they are good and I can start doing a couple of calculations for the levels.

P.s. Thank youuuu boooooooothhh :D

Post Reply