Everlast

Member
Hello!
Im trying to do a new spawn chance based after kill the dark father,and this is the code im using:

C#:
GauntletSpawner sp1 = CreateSpawner("DarknightCreeper", 491, 456, 473, 432, 417, 426, true, 473, 412, 39, 60);
            GauntletSpawner sp2 = CreateSpawner("FleshRenderer", 482, 520, 468, 496, 426, 422, false, 448, 496, 56, 48);
            GauntletSpawner sp3 = CreateSpawner("Impaler", 406, 538, 408, 504, 432, 430, false, 376, 504, 64, 48);
            GauntletSpawner sp4 = CreateSpawner("ShadowKnight", 335, 512, 360, 478, 424, 439, false, 300, 478, 72, 64);
            GauntletSpawner sp5 = CreateSpawner("AbysmalHorror", 326, 433, 360, 429, 416, 435, true, 300, 408, 60, 56);
            GauntletSpawner sp6 = CreateSpawner("DemonKnight", 423, 430, 0, 0, 423, 430, true, 392, 392, 72, 96);
            //
            GauntletSpawner sp7 = CreateSpawner("Zombie", 423, 430, 0, 0, 423, 430, true, 392, 392, 72, 96);  //Custom

            sp1.Sequence = sp2;
            sp2.Sequence = sp3;
            sp3.Sequence = sp4;
            sp4.Sequence = sp5;
            sp5.Sequence = sp6;
            //
            if (0.9 >= Utility.RandomDouble())
               { 
               sp6.Sequence = sp7;
               sp7.Sequence = sp1;
               }
            else
            {
            sp6.Sequence = sp1;
            }
            //
Tryed with 0.9 and do the full round 10 times without the new spawner,am i failing in the code?Thank you!
Post automatically merged:

Forgot,script is GauntletSpawner.cs ,thank you!
 
Last edited:
The part you are modifying is the gauntlet generation code, so this would only be done when you first generate the gauntlet using the Generate command. It would not be looked at on dark father death.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back