Spawning items relative to party

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
boyflea
Posts: 50
Joined: Tue Aug 06, 2013 4:18 pm
Location: Hampshire, UK
Contact:

Spawning items relative to party

Post by boyflea »

Hi,
I'm late to this party I'm afraid, where everyone is getting ready for Grimrock 2 I'm just about starting on Grimrock 1 custom map. :)
NB: If I'm posting in the wrong bit, please tell me and I'll post my little 'challenges' elsewhere:

FOREST AMBUSH QUERY
1/ have stumbled across the christmassy outside theme and Leki's bowman. What I wanted to create was a night-time forest level.
Premise: party must cross an area at night without being spotted by archers.
Archers are all killable though, so the bloody-minded can just beat them all, no-matter how many spawn. So wanted to bring some strategy to the area, forcing the party to adapt their behaviour to be more stealthy:
a-Party are travelling through area at night.
b-At key points, the light level of the party is checked.
c-if party is illuminated, arrows spawn behind the party and attack them.
d-Area is populated with spawning bowman who's numbers are restocked when such a trigger is encountered.
e-when party reach safe area, all triggers are destroyed and area is now 'clean'

So most of this I have bits for: the forest, bowman, light-level checks etc.
How do we spawn arrows?
How can we position these to always spawn behind the party?

again, apologies if posting in wrong bit.
cheers
DAVE
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Spawning items relative to party

Post by Komag »

(complex) answers can be found in the scripting reference. You can check the party facing and shoot projectiles:

http://www.grimrock.net/modding/scripting-reference/
Finished Dungeons - complete mods to play
User avatar
boyflea
Posts: 50
Joined: Tue Aug 06, 2013 4:18 pm
Location: Hampshire, UK
Contact:

Re: Spawning items relative to party

Post by boyflea »

Ah, excellent - thanks!
Post Reply