Dan_Incognito Posted September 26, 2011 Share Posted September 26, 2011 Hey guys sorry if this is a dumb idea but i just want to clear up an idea i had, ok so im new to lua and im wondering say i have an ai script from the cryengine sdk and i want to use the code in leadwerks can i do this? now i dont mean a direct copy and past obviously that wont work but is there a way to tweek the script to get it to work? Im learning lua but just want to see if i can get elements from some scripts to work so i can learn how they work. Anyway sorry again if this is dumb and thanks in advance for any help! Quote Games before Dames. Link to comment Share on other sites More sharing options...
Canardia Posted September 26, 2011 Share Posted September 26, 2011 Yeah, you can use any logic in LE. So just copy the logic, not the code, and it will work. Copying logic works so that you first read and understand what the original code does, then you just transfer your knowledge by coding it in another engine. Sounds logical, right? Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Dan_Incognito Posted September 26, 2011 Author Share Posted September 26, 2011 @Metatron Thanks for the reply ok sorry for the dumb question but is the logic the same as the behaviour you implement like a function? sorry if that made no sense :/ Quote Games before Dames. Link to comment Share on other sites More sharing options...
Dan_Incognito Posted September 26, 2011 Author Share Posted September 26, 2011 Ah yes it makes sense to me now, thank you! i1ll start messing around with some scripts and try and understand it Quote Games before Dames. Link to comment Share on other sites More sharing options...
Canardia Posted September 26, 2011 Share Posted September 26, 2011 No, logic is not computer based at all, it's all in your head. But you use your head to read the logic from one computer program, and then you implement the same logic to another computer program. As an example, if the CE script picks up an object when you press F, then you would know in you head that this happens when you press F, and then you can do the same in LE. Of course you need to know then also what commands you need for doing that logic in LE, but it's quite simple, basically just a EntityPick(player,3) (upto 3 meters away) when KeyHit(KEY_F) occurs, and then FreeEntity(object) and add it to your inventory as a simple text item. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Dan_Incognito Posted September 26, 2011 Author Share Posted September 26, 2011 Thanks Metatron you've helped a lot i appreciate it Quote Games before Dames. Link to comment Share on other sites More sharing options...
Dan_Incognito Posted September 26, 2011 Author Share Posted September 26, 2011 Sorry just one more question, i have been looking for some good lua ai tutorials but google is not exactly turning up very good results. Dose anyone know any good links other than the leadwerks tutorials? Thanks again everyone Quote Games before Dames. Link to comment Share on other sites More sharing options...
Rick Posted September 26, 2011 Share Posted September 26, 2011 Really what you would be looking for is just general AI tutorials and then use your knowledge of the Lua programming language to make those tutorials come to life inside Lua. Most every programming language has the pieces to make a "theory" of AI come to life via code. Quote Link to comment Share on other sites More sharing options...
Dan_Incognito Posted September 26, 2011 Author Share Posted September 26, 2011 Thanks Rick I'll have a look around and get my head into it all Also just want to say thanks to everyone on the fourms, i know im pretty new and dont know it all yet but anytime iv asked a question in the fourms everyone has been very nice and helpful and i do really appreciate that so thanks everyone Its a plesure to be learning on the leadwerks fourms Quote Games before Dames. Link to comment Share on other sites More sharing options...
Rick Posted September 26, 2011 Share Posted September 26, 2011 If you have specific Lua questions don't be afraid to ask. Most of us won't bite! Quote Link to comment Share on other sites More sharing options...
Dan_Incognito Posted September 26, 2011 Author Share Posted September 26, 2011 Ha thanks Rick i'll try my best to get a good understanding before asking anything first Quote Games before Dames. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.