|
Post by The_Doomer on Jun 14, 2002 22:30:52 GMT -5
I'm sorry if this is off topic on this message board but I haven't been able to get a password yet for newdoom.com and I really want to know how to do this so here goes. I need to know how to use fragglescript to make floors or ceilings raise or lower when a certain number of enemies are dead. For example on level 8 Final Outpost I need to know how I can make the stairs raise to the exit when all the barons are defeated. I also need to use a similar trick to make stairs raise in level 9 Even Simpler when all the Mancubeses are defeated. Thank you.
|
|
|
Post by Kaiser on Jun 15, 2002 13:36:55 GMT -5
its all done by a little varible called objdead() first you need to know how to implent fragglescript, which shouldn't be a problem. now, take a look on the monsters in your map editor. see what thing# they are, for example, the fiirst thing you put in there is labled 1, then the next thing you put in is labled 2 and so on. check all the numbers of the monsters that want to be affected when dead and trigger the script. now make a script similar to this: assuming there are 4 barons you want affected, this script counts as 4. script 1 { while(1) { if((objdead("add thing number here")) && (objdead("add thing number here")) && (objdead("add thing number here")) && (objdead("add thing number here"))) { "add what you want happen here" break(); } wait(1); } }startscript(1); I hope you can understand this, if not, then you can just send the map to me and I'll script it myself
|
|
|
Post by The_Doomer on Jun 15, 2002 17:45:29 GMT -5
Thanks Kaiser. I'll try it on a sample level first so I don't screw up my doom64 levels . Keep up the the good work on DSV4 Legacy. Later.
|
|
|
Post by The_Doomer on Jun 15, 2002 18:13:17 GMT -5
Damn. Every time I add the text I end up corrupting the wad. What tool is the best for adding fragglescript commands and where should the scripts be inserted? I've been using Word for adding the text and it seems to corrupt my wad every time. I really want to learn this Doom editing language and get good at it. Thanks.
|
|
|
Post by The_Doomer on Jun 15, 2002 20:57:07 GMT -5
Ok. I was able to apply the script but when I kill the 3 barons the floors don't rise. Could you create a sample level that has stairs rise when 3 barons are killed using fragglescript and send the link to me on this thread? I learn better by seeing how it was done before. Thanks.
|
|
|
Post by Kaiser on Jun 16, 2002 10:51:16 GMT -5
sure, hold on. btw, I am working on a scripting program that will do much of the dirty work for you. problem is, I am still learning Delphi....
|
|
|
Post by The_Doomer on Jun 16, 2002 19:19:47 GMT -5
Ok. Can you get it to me sometime today? I would appreciate it. Just post the link to the wad in your next post.
|
|