Ezxariarch Posted January 27, 2006 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? 0 Share this post Link to post
TheDarkArchon Posted January 27, 2006 You need braces at the start and the end of IF statements E.G int i; Script 999 (void) { if(i == 2) { print(s:"LOL IF STATEMENT"); } } 0 Share this post Link to post
Doom'd Marine Posted January 29, 2006 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 0 Share this post Link to post
Ezxariarch Posted January 29, 2006 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); } 0 Share this post Link to post
Doom'd Marine Posted January 30, 2006 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 0 Share this post Link to post
Ezxariarch Posted January 30, 2006 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 0 Share this post Link to post