DamageType ???

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

DamageType ???

Post by Mutley » Sat Jun 25, 2016 6:07 pm

Where can I move the "DamageType" that exists in weapons?
Example:

Code: Select all

Weapon 0x13B2
{
	//MainStuff
	Name		Bow
	Desc		bow
	VendorBuysFor	29
	VendorSellsFor	58

	//WeaponInfo
	Speed		35
	Attribute	Archery
	Anim		0x12
	Damage		4d4+6
	HitSound	0x235
	MissSound	0x239
	ProjectileAnim	0xf42
	ProjectileType	0xf3f
	ProjectileSound	0x235
	MinRange        1
	MaxRange	18
	MaxHP           45

	//Booleans
	Projectile	1
	TwoHanded	1
	DamageType	2

	//Scripts
	Script      	:equipment:useItem
	DestroyScript	:equipment:onDestroy

	//Custom Values
	strrequired	20
	repairable	1
}
Where do I find this "DamageType 2" ???

Thanks

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: DamageType ???

Post by Mutley » Sat Jun 25, 2016 6:52 pm

Ok, I found the call

C:\MyShard\Distro\pkg\systems\combat\include\combat_math

Code: Select all

        var applyType;
        case( damageType )
               1:   applyType := DMG_PHYSICAL;
                    break;
               2:   applyType := DMG_RANGED;
                    break;
               3:   applyType := DMG_ASTRAL;
                    break;
        endcase
But where I find "DMG_Ranged" ???
Each arrow that shoots consumes 30 stam :/

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: DamageType ???

Post by Mutley » Sat Jun 25, 2016 7:00 pm

Ok... C:\MyShard\Distro\pkg\systems\combat\mainHitScript

Code: Select all

//Ranged
       	     2: if( attacker.enabled( "firewhilemoving" ))
                         if( !AP_ConsumeVital( attacker, STAMINA, 30 ))
                                  return 0;
                         endif
                endif
:)

Nando
POL Developer
Posts: 262
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: DamageType ???

Post by Nando » Mon Jun 27, 2016 12:30 am

Nice that you found the answers by yourself. Just be aware that this is distro-specific. ;)

Post Reply