Page 1 of 1

Help: Short Sword Evasion

Posted: Thu Aug 08, 2013 2:52 pm
by DeDy
I have a strange problem :o I created the item, and for some reason I do not want to work Evasion. Thanks so much for your help.

Code: Select all

defineObject{
	name = "short_sword",
	class = "Item",
	uiName = "Short Sword",
	model = "assets/models/items/long_sword.fbx",
	skill = "swords",
	evasion = 2,
	attackMethod = "meleeAttack",
	attackSwipe = "horizontal",
	attackSound = "swipe",
	impactSound = "impact_blade",
	attackPower = 12,
	coolDownTime = 2.5,
	damageType = "physical",
	gfxAtlas = "mod_assets/textures/nightfall_items.tga",
	gfxIndex = 2,
	weight = 2.4,
}

Re: Help: Short Sword Evasion

Posted: Thu Aug 08, 2013 3:52 pm
by Dr.Disaster
According to http://www.grimrock.net/modding/asset-d ... reference/ adding Evasion to an item definition will work only with protective gear, not weapons.

A rather simple but crude workaround could be done by adding +1 Dexterity to a weapon. As long as the character using it has a base Dexterity of at least 11 such an item would also grant +2 Evasion.

Re: Help: Short Sword Evasion

Posted: Thu Aug 08, 2013 5:59 pm
by petri
Try this:
shield = true

Re: Help: Short Sword Evasion

Posted: Thu Aug 08, 2013 10:36 pm
by Komag
interesting! :)

Re: Help: Short Sword Evasion

Posted: Thu Aug 08, 2013 10:41 pm
by Dr.Disaster
petri wrote:Try this:
shield = true
That does work with a weapon and keeps it working at the same time?

Re: Help: Short Sword Evasion

Posted: Fri Aug 09, 2013 7:14 am
by petri
Dr.Disaster wrote:
petri wrote:Try this:
shield = true
That does work with a weapon and keeps it working at the same time?
I think so although I didn't try it.

Re: Help: Short Sword Evasion

Posted: Fri Aug 09, 2013 7:55 am
by DeDy
Super, it's functional.

Code: Select all

defineObject{
	name = "short_sword",
	class = "Item",
	uiName = "Short Sword",
	model = "assets/models/items/long_sword.fbx",
	skill = "swords",
	shield = true,
	evasion = 2,
	attackMethod = "meleeAttack",
	attackSwipe = "horizontal",
	attackSound = "swipe",
	impactSound = "impact_blade",
	attackPower = 12,
	coolDownTime = 2.5,
	damageType = "physical",
	gfxAtlas = "mod_assets/textures/nightfall_items.tga",
	gfxIndex = 2,
	weight = 2.4,
}

Re: Help: Short Sword Evasion

Posted: Fri Aug 09, 2013 3:53 pm
by Neikun
!!! We could do spiked shields next!

Re: Help: Short Sword Evasion

Posted: Wed May 28, 2014 9:33 am
by orihara
How to add dexterity of the weapon can someone help me i want to know more about grimrock.



________________________________________
blackjack knives company

Re: Help: Short Sword Evasion

Posted: Wed May 28, 2014 11:32 am
by LocalFire
Its pretty easy you can see the definition of the weapon above you just add the line

dexterity=2, that will add 2 dex
same for any other stat

its all here: http://www.grimrock.net/modding/asset-d ... reference/