Aboxorox
Fredian
All Great Warriors Know when to Run
Posts: 62
|
Post by Aboxorox on Aug 16, 2004 9:49:15 GMT
I am not sure if this will work but if you make the rocks plot it protects from damage and crits, problem is the rocks will never be used up. If you script the damage damaging it a set say two damage and have forty hp in it it would take twenty for it to break. The big problem is I never scripted this before so I have no idea if even scripts can damage plot items, I am leaning more towards no. Solution there is a SetPlot script cammand. When hit you can turn on/off the plot flag and do the damage and turn it on/off when finshed. I am not sure how much lag this will cause but it I do believe it wil work
|
|
|
Post by Phoenix on Aug 16, 2004 12:35:46 GMT
Don't approach it from HP/damage, just attacks, if that could be tracked. *If* you could count the number of attacks instead of HPs that would work perfect.
|
|
|
Post by JoScMa on Aug 16, 2004 15:57:09 GMT
It is possible to count the number of times something has been hit (or swung at anyway). Each time something is attacked, it triggers and OnHit event. Each time that is fired, could always increment a local variable by one towards a maximum limit. Then when that is hit, the vein will become unplot and destroy itself. At least that's what I think. Could be wrong though.
|
|
|
Post by Makzimia on Aug 16, 2004 17:32:29 GMT
I actually downloaded and tested a script for a combat dummy, that does checks on hit numbers, it also gives XP and destroys at the end of it's number as well. The only problem with something like that is it adds more local ints into memory, imagine the current tracking of a players skill + hit counts x whatever, potentially quite a problem. A good example of how local int ( temporary memory calls) effect the server, following removing the kehaar book and replacing it, the server has been far more stable reason being, errant memory calls via bad local ints stored with the players PC wrongly, were going off all over the place. Since about 11am this morning, I have been modifying ALL ore and flowers to have higher HP for now, flowers were like 10 HP and ore which was incremented down from 200 - 45 at Myrk, now ALL are 200. This will even out somewhat each end, whilst giving Salandra some breathing room. She just got made in charge of some more work she had not expected. I should have the update done by about 6 tonight hopefully my time a LOT to change. EDIT: Make that about 9 or so..... Makz.
|
|
|
Post by Makzimia on Aug 16, 2004 21:54:09 GMT
Scratch the 9 or so. I am going to wait until I can do a full recompile tomorrow, with this much changed... I want to be 100% sure of it.
|
|