super summonsphere help

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

super summonsphere help

Postby tweaker212 » Mon Mar 05, 2018 11:50 am

I was wanting to make a super summon sphere where it would automatically summon monsters when the friendly monsters die this is what I have so far
Code: Select allExpand view
actor SuperSummonSphere : ArtiDarkServant Replaces ArtiDarkServant
{
   Game Doom
   -AUTOACTIVATE
   -COUNTITEM
   -FLOATBOB
   inventory.maxamount 3
    Inventory.Icon "CARNE0"
    Inventory.PickupMessage "Summoner!"
    states
    {
    Spawn:
      CARN ABCD 4 bright
      loop
    }
}

actor SummonSphereThrown : SummoningDoll Replaces SummoningDoll
{
   Game Doom
     Speed 20
     +NOBLOCKMAP
     +DROPOFF
     +MISSILE
     +NOTELEPORT
    states
    {
    Spawn:
      CARN ABCD 4 bright
      loop
    Death:
      CARN AB 4
      CARN C 4 A_SpawnItemEx("SummonFog1",0,0,0,0,0,0,0)
      CARN C 4 A_SpawnItemEx("spawner",0,0,0,0,0,0,0)
          tnt1 a 1 acs_executealways(60)
           stop
      
    }
}

actor SummonFog1 : TeleportFog replaces MinotaurSmoke
{
}

actor SummonFog2 : TeleportFog replaces MinotaurSmokeExit
{
}



Code: Select allExpand view
actor spawner : randomspawner
{
+lookallaround
dropitem "arachnotronA" 256 7
dropitem "archvileA" 256 7
dropitem "baronofhellA" 256 7
dropitem "hellknightA" 256 7
dropitem "cacodemonA" 256 7
dropitem "cyberdemonA" 256 7
dropitem "demonA" 256 7
dropitem "spectreA" 256 7
dropitem "chaingunguyA" 256 7
dropitem "shotgunguyA" 256 7
dropitem "doomimpA" 256 7
dropitem "fatsoA" 256 7
dropitem "lostsoulA" 256 7
dropitem "painelementalA" 256 7
dropitem "revenantA" 256 7
dropitem "shotgunguyA" 256 7
dropitem "spidermastermindA" 256 7
dropitem "wolfensteinssA" 256 7
dropitem "zombiemanA" 256 7
dropitem "marinebfgA" 256 7
dropitem "marineberserkA" 256 7
dropitem "marinechaingunA" 256 7
dropitem "marinechainsawA" 256 7
dropitem "marinefistA" 256 7
dropitem "marinepistolA" 256 7
dropitem "marineplasmaA" 256 7
dropitem "marinerailgunA" 256 7
dropitem "marinerocketA" 256 7
dropitem "marinessgA" 256 7
dropitem "marineshotgunA" 256 7
dropitem "mbfhelperdogA" 256 7
}

actor arachnotronA : arachnotron
{
spawnid 5
}

actor archvileA : archvile

{
spawnid 5
}

actor baronofhellA : baronofhell
{
spawnid 5
}

actor hellknightA : hellknight
{
spawnid 5
}

actor cacodemonA : cacodemon
{
spawmid 5
}

actor cyberdemonA : cyberdemon
{
spawnid 5
}

actor demonA : demon
{
spawnid 5
}

actor spectreA : spectre
{
spawnid 5
}

actor chaingunguyA : chaingunguy
{
spawnid 5
}

actor shotgunguyA : shotgunguy
{
spawnid 5
}

actor doomimpA : doomimp
{
spawnid 5
}

actor fatsoA : fatso
{
spawnid 5
}

actor lostsoulA : lostsoul
{
spawnid 5
}

actor painelementalA : painelemental
{
spawnid 5
}

actor revenantA : revenant
{
spawnid 5
}

actor spidermastermindA : spidermastermind
{
spawnid 5
}

actor wolfensteinssA : wolfensteinss
{
spawnid 5
}

actor zombiemanA : zombieman
{
spawnid 5
}

actor marinebfgA : marinebfg
{
spawnid 5
}

actor marineberserkA : marineberserk
{
spawnid 5
}

actor marinechaingunA : marinechaingun
{
spawnid 5
}

actor marinechainsawA : marinechainsaw
{
spawnid 5
}

actor marinefistA : marinefist
{
spawnid 5
}

actor marinepistolA : marinepistol
{
spawnid 5
}

actor marineplasmaA : marineplasma
{
spawnid 5
}

actor marinerailgunA : marinerailgun
{
spawnid 5
}

actor marinerocketA : marinerocket
{
spawnid 5
}

actor marinessgA : marinessg
{
spawnid 5
}

actor marineshotgunA : marineshotgun
{
spawnid 5
}

actor mbfhelperdogA : mbfhelperdog
{
spawnid 5
}

Code: Select allExpand view
script 60 enter
{
thing_hate(5,0,5)
}

now i was wanting to use global acs to make the summonsphere count how many friendlys are spawned and automatically summon others as needed to compete the level this is for entertainment only lol so u could walk away and have the monsters kill each other i was also wanting to use the thing hate script so they would hunt the monsters without the player awakening them
I also need help with script compiling and what would be best to use to make this a reality please help if u can
tweaker212
 
Joined: 05 Mar 2018

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests