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 » Thu Aug 08, 2013 2:52 pm

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: 2855
Joined: Wed Aug 15, 2012 11:48 am

Re: Help: Short Sword Evasion

Post by Dr.Disaster » Thu Aug 08, 2013 3:52 pm

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 » Thu Aug 08, 2013 5:59 pm

Try this:
shield = true

User avatar
Komag
Posts: 3637
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Help: Short Sword Evasion

Post by Komag » Thu Aug 08, 2013 10:36 pm

interesting! :)
Finished Dungeons - complete mods to play

User avatar
Dr.Disaster
Posts: 2855
Joined: Wed Aug 15, 2012 11:48 am

Re: Help: Short Sword Evasion

Post by Dr.Disaster » Thu Aug 08, 2013 10:41 pm

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 » Fri Aug 09, 2013 7:14 am

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 » Fri Aug 09, 2013 7:55 am

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 » Fri Aug 09, 2013 3:53 pm

!!! 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 » Wed May 28, 2014 9:33 am

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 » Wed May 28, 2014 11:32 am

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