Equip script handling ar

Archive of the older Feature Request Forum Posts
Locked
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Equip script handling ar

Post by MontuZ »

Instead of the core doing it, I'd rather take care of adding AR from Armour in my equipscripts. :grin:

Oh, and weight, *wink*
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

That's what ar_mod is for.

Weight......... yeah right ;)
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

Be like Nike, just do it.

8)

(Scratch the weight part, I didn't put much thought into that.)
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

What I mean is. The cfg setting AR is being added to the mobile by the core. I don't want it to do that, I do. Instead of just setting the cfg AR to 0 then making my own entry, which is what I'm doing now, lol.

Now ya get it? =D
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

No, considering you can do that in scripts already.

Why make the equip return with it, the AR for the item, when you can do the same stuff as you would for that, then set ar_mod for it. :evil:
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

I just don't get why equiping a plate chest with 1000AR ar_mod=957 and AR=43(example) and it showing up as 1421 equiped. And if I want 1000AR even I have to set ar_mod=655 and AR=43. And if AR=0 and ar_mod=1000 would be showing up as like 440AR equiped?

Am I just missing something here? I'm guessing attributes, quality and layers influence these changes. And if they do, well... I wanna be the one to do it and not the core.

(don't kill me,:oops:)

I'm kind of surprised Marilla hasn't stepped in and gave me a five paragraph lecture. (I kinda miss those.)
Last edited by MontuZ on Mon Jan 08, 2007 10:30 pm, edited 2 times in total.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

what is the .quality of this armor? that affects the total number too. and what is the % of HP it has?
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

1.0 and 100%
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Let me take a stab at this one.

Are you saying that you don't understand why when you equip a breastplate that has a 1000 AR it goesn't show a full 1000 AR?

If so I can explain. It has to do with the coverage of the item. A breastplate only covers the body which is only part of the total area that needs protected. If you have a full set of plate with each item's AR set to 1000 and you equip them all then the AR will show up as 1000 on your character. The AR is a function of the AR of the item and the area(s) it covers.

I don't know if that helps you or if I explained it clearly. Ofcourse I may have misunderstood the issue totally to as I am wont to do from time to time.

*grins*
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Correct, its based off armrzone.cfg zones and the item's coverages.
If you want to make it a 'solid' amount, you can set your armrzone.cfg to have one big zone and all armor equipment to use that or if you insist on handling it inside the equip scripts, set all AR values in itemdesc.cfg entries to 0 and a custom config value like ARMOD, read that in, and set that on the mobile equipping it.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

This DOES bring up some interesting questions..... As I am too lazy to look it up in the source....... Set everything up to cover it all, so it gives 100%..... so would each 1000ar peice then give 1000 to the total.....?

If so, that's the easiest way to match OSI, since there, it gives truly what it reads, not a % based off the coverage. Nice way to do it actually, lets everyone have their own customizable methods if it does, just by editing coverage.
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

Austin, I did set all AR entries to 0 and made my own. The core still bugs with the armor rating. The examples I showed up there are only a few results with me using my custom cfg AR entry.

As shown.
//Armor Info
Armour 341
AR 0
Coverage Body
It's working, but only to a point. After some high value(only tested with 1000) the core steps in and makes changes that I don't like.

As for script customization, the core is making this a rough stepping stone(In my case.). I feel this is an issue like Spells, the core did all the checks in the past, but now we have to script everything which opens more windows.

Oh, and maybe even removing the str requirement check =)
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

I fixed it, I just hooked 0x11 status packet and did it myself!
Locked