The Crawling Dephts Behavior

Posts 13 of 3 · Page 1 of 1
The Crawling Dephts Behavior
I'm a little bit confused on how to make the part with the "while x egg being alive add following effects" as there are 2^4 possibilites if I'm not mistaken.
The idea I had would include making 16 indivual exist checks but there has to be a more efficient way.
Thanks in advance!
Code:
 new If(
                                       new EntityCountEqual("Yellow Son of Arachna Giant Egg Sac", 9999, 1),
                                       new Shoot(25, projectileIndex: 5, count: 7, coolDown: 3000, coolDownOffset: 4000)
                                      ),
                        new If(
                                       new EntityCountEqual("Red Son of Arachna Giant Egg Sac", 9999, 1),
                                       new Shoot(25, projectileIndex: 3, count: 7, coolDown: 4000, coolDownOffset: 4900)
                                      ),
                        new If(
                                       new EntityCountEqual("Blue Son of Arachna Giant Egg Sac", 9999, 1),
                                       new Shoot(25, projectileIndex: 4, count: 7, coolDown: 4000, coolDownOffset: 6000)
                                      ),
                        new If(
                                       new EntityCountEqual("Silver Son of Arachna Giant Egg Sac", 9999, 1),
                                       new Shoot(25, projectileIndex: 2, count: 7, coolDown: 3000, coolDownOffset: 6000)
                                      ),
Found this from some server files i've had on computer.
If you use NR-CORE, if you can use WhileEntityWithin.
ex: new WhileEntityWithin(new Shoot(parameters), "Yellow Son of Arachna Giant Egg Sac", 75)
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?