Author Topic: Sparky Spawner Question  (Read 589 times)

Legacy_Tazzvon

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Sparky Spawner Question
« on: March 30, 2013, 04:22:57 pm »


               If anyone uses the Sparky Spawner built into CEP 2.4 i have a question. I want to spawn the same group at multiple waypoints. do i have to make all new encounters and groups and waypoints for each place i want them to spawn or is there a way to get it to check all waypoints with the same tag and attempt to spawn at each one. I would use the random area spawn but then it spawns things in the water and other non walkable areas. any help would be great.
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Sparky Spawner Question
« Reply #1 on: March 30, 2013, 04:41:30 pm »


               Probably a scripting question, so post there.  But yes you could do it using a couple of methods.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Sparky Spawner Question
« Reply #2 on: April 01, 2013, 05:23:29 am »


               This post hasn't been copied over to the scripting forum yet, so I'll answer here...


I use the Sparky spawner system.

I have a Sparky thread at the CEP forum, where I share some helpful hints and methods I use for quickly adding enchounters to areas, along with two sample scripts.

In the example code for my sparky_enc script, I have a couple blocks showing encounters.  For what you want, I would simply change the "random" (location) to "wp: waypoint01" (whatever your first spawning waypoint is called), and change the space following to a distance (in meters, as a float (a number with a decimal)).  Then, for a 2nd waypoint, copy the entry, change the number, and change the waypoint to "wp: waypoint02" (or whatever).

If using my method, I would then just add both encounter numbers on the encounter variables placeable in that area.  When the spawner runs, it would then spawn a group at each waypoint.

There really isn't a limit to the number of predefined encounters you can add, so you could do this multiple times for different encounters.

I believe that the Sparky code only looks for waypoints for the encounters within the spawning area, so you could re-use the encounters (and waypoints) in multiple areas.

That CEP forum thread also links to a handy .pdf document with better organized information and examples.  You can use that if you like (just ignore anything that's shown in italics, since that's stuff I've added for my own PW and isn't in the regular Sparky scripting).


There might be a way to alter the code to add in an option to spawn the same group at multiple same-tagged waypoints in an area, but it'd take some new scripting to add that option.
               
               

               


                     Modifié par The Amethyst Dragon, 01 avril 2013 - 04:25 .