Data Realms Fan Forums http://45.55.195.193/ |
|
trying to learn Lua.... cant understand http://45.55.195.193/viewtopic.php?f=73&t=27251 |
Page 1 of 4 |
Author: | Sly-UX1XN [ Mon Dec 12, 2011 9:14 pm ] |
Post subject: | trying to learn Lua.... cant understand |
im trying to learn Lua but I cant understand most of the words used to explain im like what does that mean :o |
Author: | Asklar [ Tue Dec 13, 2011 5:27 am ] |
Post subject: | Re: trying to learn Lua.... cant understand |
With "words" you mean functions? Like, I dunno, CastMORay, ToActor? You can use the wiki to learn about functions. Syntax is very easy, if that's your problem, you can ask also. |
Author: | Sly-UX1XN [ Tue Dec 13, 2011 8:23 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
1) "scriptpath = <path to Lua file>" in the objects code block with appropriate tabbing 2) about variables how to add them what they are and why 3) and loads of others |
Author: | CaveCricket48 [ Tue Dec 13, 2011 9:13 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
Have you tried looking at the Lua tutorial stickied in this forum? |
Author: | Sly-UX1XN [ Tue Dec 13, 2011 9:19 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
thats where I got ^^ from (my questions) the tut was aimed at inexperienced modders and im so bad I cant even understand that :') |
Author: | Asklar [ Tue Dec 13, 2011 9:47 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
I learnt from there. Alright, if you want to learn, let's start from something specific: what do you specifically don't understand? Everything? Is there something you understand? |
Author: | Sly-UX1XN [ Tue Dec 13, 2011 10:01 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
the only thing I get is how to make a Lua. file haha and your really gonna teach me :O im tough work |
Author: | Asklar [ Wed Dec 14, 2011 4:52 am ] |
Post subject: | Re: trying to learn Lua.... cant understand |
I don't have any problems on teaching you, not at all, but I doubt we can spam this thread with teachings. |
Author: | carriontrooper [ Wed Dec 14, 2011 3:52 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
Sly-UX1XN wrote: 1) "scriptpath = <path to Lua file>" in the objects code block with appropriate tabbing 2) about variables how to add them what they are and why 3) and loads of others At least I can provide explanation for #1. The scriptpath thingy there is to 'link' the CC .ini object (for example, an actor) to a .lua script (which does things to the actor, say make a hovering moustache over the actor). So, for example, you have a .lua file, moustache.lua, that does this to actors. You want Mia, the Ronin actor, to have a companion moustache, so you put the line 'scriptpath = Ronin.rte/moustache.lua' (assuming you plopped that straight in Ronin.rte folder) somewhere in Mia's .ini definition. But then you also want Dmitri to have a companion moustache too, so you just plop the same line somewhere in Dmitri's .ini definition. Got that? |
Author: | Sly-UX1XN [ Wed Dec 14, 2011 9:55 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
ahhhhhh and why cant we spam the thread |
Author: | Asklar [ Thu Dec 15, 2011 5:32 am ] |
Post subject: | Re: trying to learn Lua.... cant understand |
Well, if I can spam the thread without it being a problem, I can teach you basic things. |
Author: | Sly-UX1XN [ Thu Dec 15, 2011 9:04 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
who do we ask to spam the thread? |
Author: | Asklar [ Thu Dec 15, 2011 9:13 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
No one, let's begin. ScriptPath carriontrooper wrote: At least I can provide explanation for #1. The ScriptPath thingy there is to 'link' the CC .ini object (for example, an actor) to a .lua script (which does things to the actor, say make a hovering moustache over the actor). So, for example, you have a .lua file, moustache.lua, that does this to actors. You want Mia, the Ronin actor, to have a companion moustache, so you put the line 'ScriptPath = Ronin.rte/moustache.lua' (assuming you plopped that straight in Ronin.rte folder) somewhere in Mia's .ini definition. But then you also want Dmitri to have a companion moustache too, so you just plop the same line somewhere in Dmitri's .ini definition. Got that? Remember you've got to type "ScriptPath" with the corresponding capitals. Understood? |
Author: | Sly-UX1XN [ Thu Dec 15, 2011 9:35 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
Understood but do you put that in the actors.ini or on a .Lua notepad you make yourself? |
Author: | Asklar [ Thu Dec 15, 2011 9:38 pm ] |
Post subject: | Re: trying to learn Lua.... cant understand |
ScriptPath = YourMod.rte/Your/Path/ToTheLua/File.lua goes anywhere inside the actor's, gun's or bullet's ini code, just like if you were adding an extra variable like Sharpness, Mass or HitsMOs. |
Page 1 of 4 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |