Error Message have anyone a fix?

This is my code in the first line i get this Error: vErr:S77: Unexpected “zombie_round_manager” following expression(3100)

View Problem (Alt+F8)

module zombie_round_manager

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

zombie_round_manager := class(creative_device):

    @editable
    ZombieSpawner : npc_spawner_device

    @editable
    ZombiesPerRoundBase : int = 5

    @editable
    ZombiesPerRoundMultiplier : float = 1.5

    CurrentRound : int = 1
    ZombiesRemaining : int = 0

    OnBegin<override>() :=
        StartNextRound()

    StartNextRound() :=
    multiplier := 1.0
    for (i in range(1, CurrentRound - 1)):
        multiplier *= ZombiesPerRoundMultiplier

    ZombiesRemaining = ToInt(ZombiesPerRoundBase * multiplier)
    Log("Runde {CurrentRound}: Spawne {ZombiesRemaining} Zombies")

    for (Index in range(0, ZombiesRemaining - 1)):
        ZombieSpawner.Spawn()

    WaitForZombiesToDie()

    WaitForZombiesToDie() :=
        loop:
            Sleep(1.0)
            AliveZombies := ZombieSpawner.GetAliveNPCCount()
            ZombiesRemaining = AliveZombies

            if (AliveZombies <= 0):
                Log("Alle Zombies eliminiert. Runde {CurrentRound} beendet.")
                CurrentRound += 1
                Sleep(3.0)
                StartNextRound()

Hey zeitlose how are you?

As far as I understand, you are trying to create a module called “zombie_round_manager”, right?

You are having some issues with that, as that’s not how you create a module in Verse. Here you have the documentation about it.

I’m not really sure, but I think that other problem you are having, is that you are naming the module and the class the same way.

Then you have other issues with your code that are not related to the problem you are asking help, but you should declar variables that can change with your code with the prefix “var”, otherwise the code will give you errors and won’t compile.

For example:

    var CurrentRound : int = 1
    var ZombiesRemaining : int = 0

Hope this helps you!! Let me know if you need more help!