Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Ezxariarch

Script freezes the computer

Recommended Posts

I made a new map recently and have this script in it.

Script 2 OPEN//Wave 1-Imps-Autosave the game
{
While(ThingCount(T_CACODEMON, 99) > 0)
Delay (75);
Door_Raise (52,64,0);
}

Script 3 OPEN//Wave 2-Demons, Bloodfiends, and Cacos-Create Some ammo
{
While(ThingCount(T_IMP, 100) > 0)
Thing_Spawn (17,157,0,0);
Thing_Spawn (18,160,0,0);
Thing_Spawn (19,163,0,0);
Thing_Spawn (20,168,0,0);
Delay (75);
Door_Raise (53,64,0);

}

Script 4 OPEN//Wave 3-Nightmares and Guardian Cubes
{
While(ThingCount(T_NONE, 101) > 0)
Delay (75);
Door_Open(54,64);
}

Script 5 OPEN//Wave 4-Hellknights and Barons of Hell-Create Soul Sphere, Bone Armor, and some ammo.
{
While(ThingCount(T_NONE, 102) > 0)
Thing_Spawn (17,157,0,0);
Thing_Spawn (18,160,0,0);
Thing_Spawn (19,163,0,0);
Thing_Spawn (20,168,0,0);
Thing_Spawn (33,T_SOULSPHERE ,0,0);
Thing_Spawn (34,185,0,0);
Delay (75);
Door_Raise (55,64,0);
}

Script 6 OPEN//Wave 4-Archons of Hell (Boss)-Create a Demon Shield and some Ammo
{
While(ThingCount(T_NONE, 103) > 0)
Thing_Spawn (17,157,0,0);
Thing_Spawn (18,160,0,0);
Thing_Spawn (19,163,0,0);
Thing_Spawn (20,168,0,0);
Thing_Spawn (34,184,0,0);
Delay (75);
Door_Raise (56,64,0);
}

Script 7 OPEN//Open Portal After Archons are Defeated
{
While(ThingCount(T_NONE, 104) > 0)
Delay (75);
Print (s: "A portal has opened nearby");
Floor_RaiseByValue (50,4,16);
Floor_LowerByValue (51,8,60);
}

Whenever I play with monsters on, and try to warp to that map with the script, the computer would freeze and the music for the level will play but the screen will stay like it was right before map schange. Is there something I can do to fix this problem?

Share this post


Link to post
Ezxariarch said:

I made a new map recently and have this script in it.

Script 2 OPEN//Wave 1-Imps-Autosave the game
{
While(ThingCount(T_CACODEMON, 99) > 0)
Delay (75);
Door_Raise (52,64,0);
}

Script 3 OPEN//Wave 2-Demons, Bloodfiends, and Cacos-Create Some ammo
{
While(ThingCount(T_IMP, 100) > 0)
Thing_Spawn (17,157,0,0);
Thing_Spawn (18,160,0,0);
Thing_Spawn (19,163,0,0);
Thing_Spawn (20,168,0,0);
Delay (75);
Door_Raise (53,64,0);

}

Script 4 OPEN//Wave 3-Nightmares and Guardian Cubes
{
While(ThingCount(T_NONE, 101) > 0)
Delay (75);
Door_Open(54,64);
}

Script 5 OPEN//Wave 4-Hellknights and Barons of Hell-Create Soul Sphere, Bone Armor, and some ammo.
{
While(ThingCount(T_NONE, 102) > 0)
Thing_Spawn (17,157,0,0);
Thing_Spawn (18,160,0,0);
Thing_Spawn (19,163,0,0);
Thing_Spawn (20,168,0,0);
Thing_Spawn (33,T_SOULSPHERE ,0,0);
Thing_Spawn (34,185,0,0);
Delay (75);
Door_Raise (55,64,0);
}

Script 6 OPEN//Wave 4-Archons of Hell (Boss)-Create a Demon Shield and some Ammo
{
While(ThingCount(T_NONE, 103) > 0)
Thing_Spawn (17,157,0,0);
Thing_Spawn (18,160,0,0);
Thing_Spawn (19,163,0,0);
Thing_Spawn (20,168,0,0);
Thing_Spawn (34,184,0,0);
Delay (75);
Door_Raise (56,64,0);
}

Script 7 OPEN//Open Portal After Archons are Defeated
{
While(ThingCount(T_NONE, 104) > 0)
Delay (75);
Print (s: "A portal has opened nearby");
Floor_RaiseByValue (50,4,16);
Floor_LowerByValue (51,8,60);
}

Whenever I play with monsters on, and try to warp to that map with the script, the computer would freeze and the music for the level will play but the screen will stay like it was right before map schange. Is there something I can do to fix this problem?


O_O damn.. dude you helped me with a script, im just starting to try a spawn script, but i cant find the spawn point thing in Doom builder u.u that and i dont think i got it right


"
#include "zcommon.acs"

script 1 (void)
{
// Thing_Spawn will operate on all of the map spots with tid 1
Thing_Spawn (1, T_SHOTGUY, 192);
while (thingcount (T_SHOTGUY, 0))
{
delay (70);
}
Thing_Spawn (5, T_MEDKIT, 0);
}
"

^its the standard one but im just starting tinkering with it

Share this post


Link to post

do you want this to happen every time? Or just once. I'm new the scripting, so I dont know too much, but I think you can do it like this.

Script 1 OPEN
{
While(Thing_Count(T_Shotguy, 192(is this his Tag?)) > 0)
{
Delay (70);
}
ACS_execute (2,0);
}

Script 2 (void)
{
Spawn_Spot ("ShotgunGuy",1(tag of spot),0,0);
{
Delay (70);
}
Spawn_Spot ("Medkit",2(tag of another spot),0,0);
}

Share this post


Link to post

just once.. this is just for pratice; and its for when im picking up a shotgun or something.


Edit; since i will end up using it alot, it might be used on diffrent weapons and pick ups.. with diffrent enemies... e.e; soooo i need to know how to change those items around

Share this post


Link to post
Doom'd Marine said:

Edit; since i will end up using it alot, it might be used on diffrent weapons and pick ups.. with diffrent enemies... e.e; soooo i need to know how to change those items around


You'll need a different script if you want another item, atleast as far as I know, that's the easiest way. I dont know how to use the IF-Then commands yet, so i cant help you there.

If you dont know what are the correct names of the power-ups/items, or just the names the thing objects in Doom in general, go to the link below. It lists all the actor names for Zdoom.

Link: http://www.zdoom.org/wiki/index.php?title=Classes

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×