SolvedMy failed behavior

Posts 1–4 of 4 · Page 1 of 1
My failed behavior
Hi i tried to make a event chest for my server then i got a bunch of errors.

Code:
                        new State("Death",
                            new ConditionalEffect(ConditionEffectIndex.Invulnerable),
                            new CopyDamageOnDeath("Event Chest"),
                            new Taunt("EVENT CHEST"),
                            new TimedTransition(2000, "Suicide"),
                            new Shoot(100, 10, projectileIndex: 6)
                        )
                    ),
Code:
                    .Init("Event Chest",
                    new State(
                    new State("Idle",
                        new Taunt(true, "Event Chest has been spawned."),
                        new ConditionalEffect(ConditionEffectIndex.Invulnerable),
                        new TimedTransition(5000, "Event")
                    ),
                    new State("Event")
                ),
                new Threshold(0.23,
                    new TierLoot(12, ItemType.Weapon, 0.05),
                    new TierLoot(6, ItemType.Ability, 0.05),
                    new TierLoot(13, ItemType.Armor, 0.05),
                    new TierLoot(6, ItemType.Ring, 0.06),
                    new ItemLoot("Shield of Ogmur", 0.04),
                    new ItemLoot("Seal of Blasphemous Prayer", 0.04),
                    new ItemLoot("Demon Blade", 0.04),
                    new ItemLoot("Indomptable", 0.04),
                    new ItemLoot("Crystal Sword", 0.04)
                )
            )
Please help me

Screenshot : http: //pr nt scr.c o m/e r1 kg z
Quote Originally Posted by Yul0627 View Post
Hi i tried to make a event chest for my server then i got a bunch of errors.

Code:
                        new State("Death",
                            new ConditionalEffect(ConditionEffectIndex.Invulnerable),
                            new CopyDamageOnDeath("Event Chest"),
                            new Taunt("EVENT CHEST"),
                            new TimedTransition(2000, "Suicide"),
                            new Shoot(100, 10, projectileIndex: 6)
                        )
                    ),
Code:
                    .Init("Event Chest",
                    new State(
                    new State("Idle",
                        new Taunt(true, "Event Chest has been spawned."),
                        new ConditionalEffect(ConditionEffectIndex.Invulnerable),
                        new TimedTransition(5000, "Event")
                    ),
                    new State("Event")
                ),
                new Threshold(0.23,
                    new TierLoot(12, ItemType.Weapon, 0.05),
                    new TierLoot(6, ItemType.Ability, 0.05),
                    new TierLoot(13, ItemType.Armor, 0.05),
                    new TierLoot(6, ItemType.Ring, 0.06),
                    new ItemLoot("Shield of Ogmur", 0.04),
                    new ItemLoot("Seal of Blasphemous Prayer", 0.04),
                    new ItemLoot("Demon Blade", 0.04),
                    new ItemLoot("Indomptable", 0.04),
                    new ItemLoot("Crystal Sword", 0.04)
                )
            )
Please help me

Screenshot : http: //pr nt scr.c o m/e r1 kg z
Didn't spell an item right or you never added to dat 1
- - - Updated - - -
@Yul0627 One of your Transition's is going to a State which doesn't exist.
What one is it?
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us