Item Scaling help
Ok I'm trying to use sub EVENT_SCALE_CALC But I'm confused as hell even after using
Code:
sub EVENT_SCALE_CALC This is what I have. Code:
sub EVENT_SCALE_CALC { |
Scaling is generally between 0 and 1, or 0% and 100%. The easiest thing to do is put hardcoded numbers in the script and see how it scales. If you put 0.5, what are the stats, what are they at 1.5? That way you can see what you need to do with the formula to make it work the way you want.
|
Ok How do i set what item ups the stats and all that. (I'm going for something that Trevius has on his server. The more AAs you give to an npc the more the stats go up. But i don't know how to do it and theres not to much in the forums talking about it.)
|
Items that scale, will scale all stats by the percentage that the calc returns as far as i know, not just one or two stats.
Look at LLDAugText.pl to see how to use Qglobals. Ignore all the values, because all you need to worry about is making your values go from 0 to 1. |
As far as I know, the stats you see in the item editor are what they would be if the scale value was 1, or 100%.
It's a very easy thing to experiment with, and you're not going to permanently break anything if the script is wrong, so play around, you'll figure it out. |
I might just forget it. I think I got most of it down but if I have to figure it out with no reference than I might not ever get it to work as I want it to.
I can probably get it to scale but I still don't know how use my item to make it scale up. I want the stats to improve after ever 50 Rift Shards given to an npc. So how can I get it to do that? |
You also have a spelling error in your script above.
|
You have been given references. I am not going to write your script for you.
Here is another. look at the Vxed zone to see how each mob increments a qglobal. And another. Look at damn near any script in PoK to see a turn in example. Combine it all up and snap. You got your scripts. Hmm, did I just slip tell you you need multiple scripts too? |
Going off what you gave me I got the turn in working. But It doesn't do anything yet. Here is my Script. (Please tell me if I'm missing anything. I think I need to add a $qglobals, But I'm not sure how to do it yet.)
Code:
sub EVENT_SAY { example 1 Code:
if (defined $qglobals{bic} && $qglobals{bic_sew} == 12 && $qglobals{bic_vxe} == 13 && $qglobals{bic_tip} == 14) { Code:
if (defined($qglobals{clockwork}) && ($qglobals{clockwork} == 1)) { Code:
sub EVENT_DEATH { |
|
I've read it and I understand it but I still don't know what 12,13,14 is for. Its like no one can tell me how to use a $qglobal for this. I can easily make a qglobal in peq database editor, But I don't know what I need to set it to. I can give it a Name,and set the zone,npcid,and player. But what do I put as a Value? It doesn't make seance. How dose a qglobals work for this?
right now I'm really frustrated, Y'all make this out to be so easy. If I can't figure out how to do this I might just trash my server. If I can't do something this simple, maybe I don't need to be running a server. (just a thought) |
The value is whatever you want it to be.
|
it don't matter what I set it to? Huh that would be so nice to know XDD.
|
Since you came up with something, I added some info for you.
Code:
sub EVENT_SAY { |
Quote:
|
All times are GMT -4. The time now is 09:26 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.