Except two.
First one is a script that sets up an ambush:
I'd like the following to happen -
As soon as characters attack a given door, 3 NPC's - A, B & C - hear the noise & move from their bedrooms to set waypoints - 1,2 & 3 - one either side of the door on the other side & one in the centre of the room (to draw the PC's attention away from the rogues just about to backstab them when they charge in to attack the lowly fighter they see).
It doesn't sound too tricky, but so far I've not managed to create a script that works. I've tried creating them in Lilac Soul's creator & attaching the script to both the door's on attacked, On damaged & even On death script functions, but the NPC's stay holed up in their rooms come what may.
Second one is sort of similar:
I have a group of 4 guards in a room the PC's enter via a corridor. On seeing the PC's, or when attacked by them, I want one of the group (tag "guard_a") to run to the barracks area, through a closed, but not locked door, and move to a waypoint ("guard_a_wp_1"). When he gets there, I want the 8 reinforcement guards (all 8 with the same tag) to come out of their rooms and run with "guard_a" to a waypoint in the main area where the PC's should still be fighting the remaining 3 initial guards.
Again, I'm sure it must be straightforward, and I've created a script in Lilac Soul & put it in the "On attacked" & "On perceived PC" (I think its called - whichever is the one that looks like its called when the monster sees the PC), but the guard refuses to leave his buddies & get help.
Does anyone out there who understands scripting much better than me know of a script that does that?





Retour en haut






