Results 1 to 2 of 2

Thread: Example : How to make Rule Book Machines

  1. #1

    Example : How to make Rule Book Machines

    First, video

    For naming conventions, you will have to use this script in Global, and then put 'archive' in the card descriptions for your rules pages. This will clone a copy back to the bag it is drawn from when you load the rules.

    function onObjectLeaveContainer(container, object)
    	local desc = object.getDescription()
    	if string.find(desc, 'archive') then
    		if container then
    			local params = {}
    			local destination = {}
    			destination = container.getPosition()
    			destination.y = destination.y + 2
    			params.position = destination
    			local clone = object.clone(params)
    			desc = string.gsub(desc, 'archive', 'copy')
    Label your rules pages however you like. I used "Page 1", "Page 2", etc.

    Then there are 2 boards that have the code on them. Here is the pastebin link as it is rather long.


    The buttons are made invisible by setting

    color = {1,1,1,0}, font_color = {0,0,0,100}
    This allows me to design my own style of labels for the buttons. After you have designed your table of contents, you can use the awesome Button Visualizer tool GiantDwarf01 to line up where the positions for the buttons should be.

    Hope you like it I am still new at scripting so it is very likely there is a much shorter solution to doing this.

  2. #2
    I like this. Thanks for sharing.
    I had the idea of doing something similar for another project i hope to have time to work on but i thought it would be too ambitious for my level.

    You made it simple. Thank you very much

Similar Threads

  1. [SUGGESTION] Box lid rule clarifications missing?
    By Glutnix in forum Tiny Epic Galaxies
    Replies: 2
    Last Post: 06-16-2017, 05:32 PM
  2. Is there a way to make a delay?
    By Troubled Salmon in forum Scripting
    Replies: 3
    Last Post: 11-09-2016, 07:04 AM
  3. Replies: 9
    Last Post: 07-23-2016, 10:48 AM
  4. How to make a joint ?
    By flarre in forum General Discussion
    Replies: 2
    Last Post: 04-09-2015, 02:10 PM
  5. Scoreboard and Rule book
    By ensamgud in forum General Discussion
    Replies: 0
    Last Post: 04-22-2014, 10:10 AM

Posting Permissions

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