Help: Short Sword Evasion

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
DeDy
Posts: 132
Joined: Sun Oct 07, 2012 3:41 pm
Location: Brno, Czech Republic

Help: Short Sword Evasion

Post 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,
}
Nightfall: First Contact – http://dedy.euweb.cz/nightfall.html
User avatar
Dr.Disaster
Posts: 2874
Joined: Wed Aug 15, 2012 11:48 am

Re: Help: Short Sword Evasion

Post 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.
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Help: Short Sword Evasion

Post by petri »

Try this:
shield = true
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Help: Short Sword Evasion

Post by Komag »

interesting! :)
Finished Dungeons - complete mods to play
User avatar
Dr.Disaster
Posts: 2874
Joined: Wed Aug 15, 2012 11:48 am

Re: Help: Short Sword Evasion

Post by Dr.Disaster »

petri wrote:Try this:
shield = true
That does work with a weapon and keeps it working at the same time?
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Help: Short Sword Evasion

Post 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.
User avatar
DeDy
Posts: 132
Joined: Sun Oct 07, 2012 3:41 pm
Location: Brno, Czech Republic

Re: Help: Short Sword Evasion

Post 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,
}
Nightfall: First Contact – http://dedy.euweb.cz/nightfall.html
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Help: Short Sword Evasion

Post by Neikun »

!!! We could do spiked shields next!
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
orihara
Posts: 1
Joined: Wed May 28, 2014 9:30 am

Re: Help: Short Sword Evasion

Post by orihara »

How to add dexterity of the weapon can someone help me i want to know more about grimrock.



________________________________________
blackjack knives company
Last edited by orihara on Wed Jun 04, 2014 6:24 am, edited 1 time in total.
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: Help: Short Sword Evasion

Post 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/
My Dungeons
Paths of the Earth: viewtopic.php?f=14&t=5136
Beneath the Sands: viewtopic.php?f=14&t=5216
Videos: viewtopic.php?f=11&t=5443
Post Reply