RPTools.net

Discussion and Support

Skip to content

It is currently Mon Dec 18, 2017 3:39 pm 






Reply to topic  [ 8 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Thu Aug 26, 2010 1:54 pm
Posts: 29
 Post subject: Tutorial Help
PostPosted: Sun Sep 24, 2017 11:40 am 
Hey everybody,
I'm trying to learn this using the wiki tutorials but I'm stuck on this one:
http://www.lmwcs.com/rptools/wiki/Intro ... and_Frames
I'm at the part where it makes a dialog box that has a dice roller with a refresh button, but when I press the refresh button it doesn't work I get this in the chat window: Unknown macro "Test@Lib:Test".
I drag a token on to the screen as it suggested and then I labelled it Lib:Test
Then I added a new macro in the Campaign tab and wrote this:
Code:
[dialog("Test"): {
  <html>
    <head>
      <title>Dice Roll Dialog</title>
    </head>
    <body>
      <b>1d4</b> -> [1d4]<br>
      <b>1d6</b> -> [1d6]<br>
      <b>1d8</b> -> [1d8]<br>
      <b>1d10</b> -> [1d10]<br>
      <b>1d12</b> -> [1d12]<br>
      <b>1d20</b> -> [1d20]<br>
      <b>1d100</b> -> [1d100]<br>
      <br>
      [macroLink("Refresh", "Test@Lib:Test")]
    </body>
  </html>
}]



What am I missing and what am I doing wrong?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Tutorial Help
PostPosted: Sun Sep 24, 2017 11:43 am 
did you name the macro Test?

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Thu Aug 26, 2010 1:54 pm
Posts: 29
 Post subject: Re: Tutorial Help
PostPosted: Sun Sep 24, 2017 11:46 am 
wolph42 wrote:
did you name the macro Test?

Yes the macro label is called Test, do I have to make the macro a global macro or is the campaign are ok?


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Thu Aug 26, 2010 1:54 pm
Posts: 29
 Post subject: Re: Tutorial Help
PostPosted: Sun Sep 24, 2017 1:15 pm 
So I got it to work, but it only works when I make the macro in the "Selected" window vs the campaign window. Is there a way to make Campaign macros for my example?


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Thu Aug 26, 2010 1:54 pm
Posts: 29
 Post subject: Re: Tutorial Help
PostPosted: Sun Sep 24, 2017 1:51 pm 
So I think I got it, so I have to create a token called Lib:Test and then create all my macros inside Lib:Test and then using Campaign macros I just call the Lib:test Macros to pop up on the screen.
Basically the Lib is my Library of marcos that belongs to a token, and then I just use that as a reference when selecting other tokens I get it now.
Can you guys correct me if I'm wrong?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Tutorial Help
PostPosted: Mon Sep 25, 2017 1:36 am 
I checked the wiki to see whether it was unclear, but it really states:
Quote:
Create a token called Lib:Test with a macro called Test

The whole point of test(at)lib:test is that you have a macro 'test' 'at/on' the 'lib'rary 'test'.

so yes. You got it right.

edit: updated the wiki

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Thu Aug 26, 2010 1:54 pm
Posts: 29
 Post subject: Re: Tutorial Help
PostPosted: Wed Sep 27, 2017 9:14 pm 
Alright so I'm following this wiki document to make a character sheet and I noticed a bug with it. When I put the character to full health it shows " at the end of the bar is there a way to get rid of the "?
Here is the tutorial I followed:
http://www.lmwcs.com/rptools/wiki/Intro ... and_Frames

I'm at the part where they show how to make a status bar. I don't really understand the code; but it is at the point in the page where it says "And a touch more formatting" the two items of code "Trafficlightbar" and "statusbar" I'm not sure what is happening with the code. I feel like there would be a much simpler way to create status bars.
Any help would be appreciated.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Tutorial Help
PostPosted: Thu Sep 28, 2017 2:23 am 
hmm, its not my article, so not my code. I don't see anything pop out immediately, I hope the original author can have a look.

What is the error you get?

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 8 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman