Page 3 of 3

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:14 pm
by Scatman
I guess wiki automatically sets the title to the URL or something? :/ If there's no way to change it, then I guess we'll just leave it as is since we'll include the parameters in the other places down below. Just checked it out, it actually doesn't look bad at all leaving the params on the main page because wiki puts a nice 1/2 (full?) space in between each link.

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:16 pm
by John Adams
Ok, we'll go that route then. Hell if we decide we hate it, we can just change it. :)

Starting to fill some of those in, the easy ones of course. Hahaha. :p

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:19 pm
by John Adams
Ooh! One more thing!

Ok, see all teh functions where LE put something like "GetCurrentHP(Spawn)"?

Can those actually be used on NPCs? Or am I lying in my Wikis that the param could be NPC -or- Spawn?

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:22 pm
by Scatman
It can be an NPC or Spawn

Your wiki's are safe :)

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:23 pm
by John Adams
AND! You're gonna get sick of me tonight. ;)

Should we actually have a "type" definition in the scripts? I mean, I know the index has some sections - but can functions be used across script types?

Like, GetCurrentHP() can be in a SpawnScript AND a Spell script. Right?

Thinking of adding

Code: Select all

== Type ==
SpawnScripts
to the template. Thoughts?

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:27 pm
by Scatman
I don't think we need it. Any LUA function can be used in any script. The functions are defined for the LUA system as a whole and spell scripts, spawn scripts, zone scripts, <insert future script type here> will all pool, in a sense, from the same pool of LUA functions we define.

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:31 pm
by John Adams
So I can use GetCurrentHP(param) in a Quest script? I did not know this.

Here's another example format - adding a ToC and header.

http://eq2emulator.net/wiki/index.php/LUA:GetCurrentHP

Do you think the two Bold Headers will get confusing? That's how I originally did it, but thought they clashed. But we could put all the params right there up top that way.

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:35 pm
by Scatman
John Adams wrote:So I can use GetCurrentHP(param) in a Quest script? I did not know this.
Yep, or a zone script, absolutely. That's why scripts are nice because you can do anything we have to offer with the functions provided.

I think that looks good. The title with the parameters sticks out because it's right under the contents (at least to me :))

Re: LUA Script WIKI

Posted: Wed Apr 01, 2009 4:45 pm
by John Adams
Ok I am done asking questions for now :) I will edit the existing, and post the template, so hopefully others will get inspired to fill in a few.

Thanks for the feedback as always.

Re: LUA Script WIKI

Posted: Mon Oct 15, 2012 9:05 pm
by Jabantiz
I have started working on the lua functions wiki, I started at the top and went down skipping those that are not implemented. This is very time consuming but I am trying to do a few a day. If you notice any mistakes let me know so I can fix them.

Re: LUA Script WIKI

Posted: Tue Oct 16, 2012 5:46 am
by alfa
Really helpful, thanks

Re: LUA Script WIKI

Posted: Thu Sep 12, 2013 3:45 pm
by Jabantiz
I was bored last night and didn't feel like coding so went through the wiki and documented the lua functions that had nothing, got a lot done last night so just went ahead and finished them off today.

All LUA Functions

All current lua functions should be on that page and documented now, I only did the pages that had nothing, didn't go through to update some of the older pages.

Re: LUA Script WIKI

Posted: Fri Sep 13, 2013 10:15 am
by John Adams
I love it when you get bored. Great job.