XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 24

Thread: Add Action (scripting within the walker)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #20

    Join Date
    Jan 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Raphael View Post
    Well, then I can't really see the difference between naming the label as the name of the function or editing its content to simply call a function.
    It loses the whole purpose and Syntax makes his point.
    The difference is simplicity. Instead of opening 10 different script files and trying to reference them with labels all darkstar has to do is make a button labeled "Edit Functions" then it opens the text document, you edit it then CTRL + S and call the function you added in the walker. The idea is that when you create a function like that you can use it anywhere without having to rewrite the function each time for example checking cap, you can have multiple areas of your walker check your cap simply by putting Action(doCheckCap()) and doCheckCap() would be the function you created in functions.lua or w/e darkstar would name it by default.


    Edit:
    Or am I misunderstanding the walker label system? Does the walker label name correspond directly to the .lua filename already? (I haven't actually played around with the labels yet)
    Last edited by sk8er08; 02-04-2012 at 09:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •