your player with shortbow or longbow

Talk about anything related to Legend of Grimrock 2 here.
Post Reply
User avatar
Halluinoid
Posts: 165
Joined: Tue Apr 02, 2013 7:08 pm
Contact:

your player with shortbow or longbow

Post by Halluinoid »

can fire normal arrows or cold arrows

but if you put shock arrows or flaming arrows in his hand it says "no ammo" and neither bow will fire them

I upgraded my player on missile skills, no difference

how does a team player use the shock arrows or fire arrows with shortbow or longbow? :mrgreen:
minmay
Posts: 2789
Joined: Mon Sep 23, 2013 2:24 am

Re: your player with shortbow or longbow

Post by minmay »

Cold arrows can be fired because they have this component:

Code: Select all

		{
			class = "AmmoItem",
			ammoType = "arrow",
			attackPower = 1,
		},
Shock and fire arrows lack this component and so cannot be fired by a bow.

However, you should not use these arrows in your mods in the first place, even if you fix this issue. This is because convertToItemOnImpact is completely useless for ammunition due to two major limitations:
1. A stack of items will convert to only a single item; throwing a pile of 5 cold arrows will convert them to 1 arrow.
2. Ammunition that is converted does not get automatically picked up, even when the slot is available to do so.

I consider any mod that places cold/fire/shock arrows to be broken and unsuitable for distribution.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Halluinoid
Posts: 165
Joined: Tue Apr 02, 2013 7:08 pm
Contact:

Re: your player with shortbow or longbow

Post by Halluinoid »

the mod will allow cold arrows to be used by shortbow or longbow, no issue to fix

if it works, that's good enough surely?
minmay
Posts: 2789
Joined: Mon Sep 23, 2013 2:24 am

Re: your player with shortbow or longbow

Post by minmay »

I just told you two different reasons why it doesn't work.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Halluinoid
Posts: 165
Joined: Tue Apr 02, 2013 7:08 pm
Contact:

Re: your player with shortbow or longbow

Post by Halluinoid »

I just tried the cold arrows

they fire

they hit, they inflict damage on enemies

they then pick up as normal arrows

what part of that doesn't work for you? :( I'm confused
minmay
Posts: 2789
Joined: Mon Sep 23, 2013 2:24 am

Re: your player with shortbow or longbow

Post by minmay »

minmay wrote:1. A stack of items will convert to only a single item; throwing a pile of 5 cold arrows will convert them to 1 arrow.
2. Ammunition that is converted does not get automatically picked up, even when the slot is available to do so.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply