I looked in docs! I need to add damage to a weapon..

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

I looked in docs! I need to add damage to a weapon..

Post by Poi »

I need to figure out how to add damage to a weapon(I want to created "damage deeds" that add damage to the specified weapon...

Anyways, I looked in iteminfo for the damage mod, but didn't help me any...

so, if you could tell me this that would be great..


Also, if someone could explain to me how somehting like 4d6 9 works?
Faceless_Soldier
New User
Posts: 15
Joined: Mon Jun 30, 2008 9:07 pm

Post by Faceless_Soldier »

I am not 100% about the 4d6 9 thing, however, I think it goes along the way of 4x D6(6 sided Dice, ie. 1-6) and I think the 9 would be added...

Eg. 4D6 9 would be 'D6 = 1-6, 4D6 = 4-24, + 9.... Total of 13-33.
Eg. 3D6 7 would be 'D6 = 1-6, 3D6 = 3-18, + 7.... Total of 10-25.

Can someone confirm/correct this?
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Post by ncrsn »

That's it: http://en.wikipedia.org/wiki/Dice_notation.

Usable with RandomDiceRoll function (http://docs.polserver.com/pol097/single ... utilem.xml).

Oh, the damage thing is surprisingly well mentioned in the docs - weapon object: http://docs.polserver.com/pol097/objref.php#Weapon.
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Post by Poi »

Huh... ok thanks, I dunno why I couldn't find that
Post Reply