wallabra Posted October 4, 2015 I was planning to do an quick plug-in on ZDoom that lets you incorporate UnrealScript into scripting, like DECORATE. This will allow for complex behavior. Example://DECORATE lump actor UScriptTest { States { Spawn: TNT1 A 8 A_ExecuteUScriptFunc('CheckIfInArray') TNT1 A 3 A_JumpIfInventory('Yeschecked', 1, 'idle') goto Death Idle: TNT1 A -1 stop Death: TNT1 A 1 A_PlaySound('test/death') stop } } //UNSCRIPT lump var actor SomeList[32]; // defines an actor list of size 32 function CheckIfInArray() { // no (void) unlike ACS local int index; // defines this int 'index' only for this function local bool bfound; // i assume you already know it for(index=0; index<ArrayCount('SomeList'); index++) { // a loop, starts with the expression index 0, loops if index is smaller than or equal the array size of SomeList and increases index by 1 if loop. if( SomeList[index]==CallingActor ) {bfound=true;} // if part index of array someslisst is the actor that call this function, then bfound is true. if(bfound) {GiveActor(callingActor, yeschecked); //if bfound is true give the calling actor the yeschecked so it will go to state Idle. }; //end for } //end function. Note that function's closing bracket don't have semicolon. This is done through a inbuilt UnrealScript compiler and a special DLL and a inclusion in decorate that will run the script together with the ACS when running a level, but it will be more interactive with DECORATE actors and may even make smart monsters! 0 Share this post Link to post
Gez Posted October 4, 2015 It's not the first time that you announce a cool-looking project, but you haven't really demonstrated the technical know-how to follow up on these promises. So I'm not sure what the point of this thread is. 0 Share this post Link to post
wallabra Posted October 4, 2015 DECORATE is just difficult to put complex behavior in. Good scripting need UnrealScript. This is from Unreal Engine 1, it is, 1999. 0 Share this post Link to post
LuciferSam86 Posted October 5, 2015 4 Questions: - Is this a proof of concept, or did you already modify some zdoom engine and tried it? (if yes, where is this "inbuilt compiler", inside this DLL? If no, what's inside this DLL? Maybe with some other explanations :) ) - Did you get the idea from this? http://forum.zdoom.org/viewtopic.php?f=19&t=32078 ? - The UnrealScript EULA permits to use this scripting language (with the compiler) outside the Unreal Engine? - Why did you choose this, instead, for example, for LUA or Python? I mean, IMHO, if we are talking about "good scripting" I think those two options are more advanced, since they are used everywhere (from games to AI simulators), maybe it would be more complex to put into Zdoom engine(s) otherwise seems an interesting idea/proof of concept, and I would like to see more :) 0 Share this post Link to post
Guest Posted October 5, 2015 This idea sounds like "Hey! I have an idea that is awesome!" that is never going to make it. Good luck with your ludicrous dream. 0 Share this post Link to post
wallabra Posted October 5, 2015 merlin86 said:4 Questions: - Is this a proof of concept, or did you already modify some zdoom engine and tried it? (if yes, where is this "inbuilt compiler", inside this DLL? If no, what's inside this DLL? Maybe with some other explanations :) ) - Did you get the idea from this? http://forum.zdoom.org/viewtopic.php?f=19&t=32078 ? - The UnrealScript EULA permits to use this scripting language (with the compiler) outside the Unreal Engine? - Why did you choose this, instead, for example, for LUA or Python? I mean, IMHO, if we are talking about "good scripting" I think those two options are more advanced, since they are used everywhere (from games to AI simulators), maybe it would be more complex to put into Zdoom engine(s) otherwise seems an interesting idea/proof of concept, and I would like to see more :) 1) A concept i've been planning. 2) I never saw that thread! I don't go to ZDoom forums since the day of infamy... 3) Now that you said it, I will check it later. although it is from 1999... 4) Because a) it is better because it supports states in code and has many things that made Unreal Tournament a best-seller, also b) I just recently learnt Python, imagine LUA! Some caveats are now visible for me. 0 Share this post Link to post
RestlessRodent Posted October 6, 2015 Great paintings are only great when they are painted. You will have to delve into ZDoom's C++ code to do any of this. I assume you know how to write a parser/lexer? 0 Share this post Link to post
Gentlepoke Posted October 6, 2015 Gustavo6046 said:Neither. Then how do you expect to create the proposed plugin? 0 Share this post Link to post
Guest Posted October 6, 2015 You are playing too many games and posting every incredible idea that pops in your mind. 0 Share this post Link to post
RestlessRodent Posted October 7, 2015 Gustavo6046 said:I am so retard! :( Do not give the actual retards a bad name now. 0 Share this post Link to post
LuciferSam86 Posted October 7, 2015 GhostlyDeath said:Do not give the actual retards a bad name now. Isn't a little harsh? 0 Share this post Link to post
RestlessRodent Posted October 7, 2015 merlin86 said:Isn't a little harsh? No. 0 Share this post Link to post
Guest Posted October 8, 2015 You aren't retarded, you are .... You are trying to learn things too fast and make things that you can't because you haven't learned yet. 0 Share this post Link to post
wallabra Posted October 8, 2015 okay. Someone please close this thread! 0 Share this post Link to post
Jaxxoon R Posted October 10, 2015 Gustavo6046 said:DECORATE is just difficult to put complex behavior in. Bout as complex as you're gonna get with this engine. 0 Share this post Link to post
fraggle Posted October 10, 2015 Gustavo6046 said:Neither. I think we're done here. 0 Share this post Link to post
Recommended Posts