Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Realm Works Forums > Realm Works Discussion
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
MNBlockHead
Senior Member
 
Join Date: Dec 2014
Location: Twin Cities Area, MN, USA
Posts: 1,325

Old August 3rd, 2015, 09:04 AM
Quote:
Originally Posted by Bobifle View Post
Could you please post the macro so we get a better idea on how to do it (in other words we'd like to steal your stuff )
Well, it really isn't a macro. It is a sraight up text replacement. See the attached screenshot, which shows a very simple 5e statblock.

It is difficult to show how to build a form in one screen shot. I would need to make a step-by-step tutorial. First, I want to complete and test the one I'm building, and second, it would take some time to write up. Also, while I like to dig into the macros and understand how to type them out in plan text, it is MUCH easier to use the Macro menubar in PhraseExpress. You simply put your cursor where you want to fill in text, and go to Macro—>Form—>Text Input box. And fill in your parameters. Where it gets more complicated is when you want to calculate values based on inputs or use conditional logic (IF...THEN...ELSE). For that you need to know how to set and get temporary values. Look at the #settemp and #gettemp maco commands.

One of the best things about the newest version of Phrase Express is the check text/value tool under Macro—>Programming, that give a GUI for creating macros that use the #check command, which compares a value to something else and outputs text based upon the comparison.

Anyway, I'll try to post a form walkthrough when I find some free time.

ScreenClip.png

RW Project: Dungeons & Dragons 5th edition homebrew world
Other Tools: CampaignCartographer, Cityographer, Dungeonographer, Evernote
MNBlockHead is offline   #11 Reply With Quote
Erdrix
Member
 
Join Date: Nov 2013
Posts: 97

Old August 3rd, 2015, 10:30 AM
I was able to make a mouse macro to do line coloring.

Now I just need to figure out the rest of it.
Erdrix is offline   #12 Reply With Quote
Bobifle
Member
 
Join Date: Jun 2015
Posts: 78

Old August 3rd, 2015, 10:41 AM
Quote:
Originally Posted by MNBlockHead View Post
It is difficult to show how to build a form in one screen shot. I would need to make a step-by-step tutorial.
Don't bother doing so, you've done already enough I see how its done thanks to your screenshot.

I first thought I'd have to code so kind of rtf formatting but it looks like you actually don't, phrase express being wysiwyg
Bobifle is offline   #13 Reply With Quote
Erdrix
Member
 
Join Date: Nov 2013
Posts: 97

Old August 3rd, 2015, 12:04 PM
You know would be interesting if it could do? A macro that scans the paragraph and after each period or question mark it presses enter to put each sentence on it's own line.
Erdrix is offline   #14 Reply With Quote
MNBlockHead
Senior Member
 
Join Date: Dec 2014
Location: Twin Cities Area, MN, USA
Posts: 1,325

Old August 3rd, 2015, 02:13 PM
Quote:
Originally Posted by Erdrix View Post
You know would be interesting if it could do? A macro that scans the paragraph and after each period or question mark it presses enter to put each sentence on it's own line.
You can do this with advanced string operations, but it can get complicated with American-style punctuation (we put our periods/full stops inside quotation marks) and you might have to use the TRIM function since I always get two spaces at the front of each sentence. It would be nice is PE would support RexEx so I could process text with more precision (maybe it does, but, if so, it isn't obvious how).

RW Project: Dungeons & Dragons 5th edition homebrew world
Other Tools: CampaignCartographer, Cityographer, Dungeonographer, Evernote
MNBlockHead is offline   #15 Reply With Quote
Bobifle
Member
 
Join Date: Jun 2015
Posts: 78

Old August 4th, 2015, 12:42 AM
I've looked into phraseexpress and it looks like you can actually share macro files.
Bobifle is offline   #16 Reply With Quote
MNBlockHead
Senior Member
 
Join Date: Dec 2014
Location: Twin Cities Area, MN, USA
Posts: 1,325

Old August 4th, 2015, 11:31 AM
Yes, and for more complicated ones (like if I ever get an NPC-generated made), it would make sense to just share the file than to create a detailed step-by-step.

RW Project: Dungeons & Dragons 5th edition homebrew world
Other Tools: CampaignCartographer, Cityographer, Dungeonographer, Evernote
MNBlockHead is offline   #17 Reply With Quote
Davout_1806
Junior Member
 
Join Date: Jul 2014
Posts: 24

Old September 8th, 2015, 02:56 AM
MNBlockHead,

Thank you so much for introducing such as awesome tool.

Some minor contributions.
Combine snippets while keeping extra line between them. Place cursor at end of last line and activate.
Code:
{#ENTER}{#CTRL -chars m}
Add tag field above current snippet
Code:
{#F9}{#DOWN -count 2}{#RIGHT}{#DOWN -count 4}{#ENTER}
Davout_1806 is offline   #18 Reply With Quote
MNBlockHead
Senior Member
 
Join Date: Dec 2014
Location: Twin Cities Area, MN, USA
Posts: 1,325

Old September 8th, 2015, 03:11 PM
Thanks. Both are useful and I've added them to my library.

RW Project: Dungeons & Dragons 5th edition homebrew world
Other Tools: CampaignCartographer, Cityographer, Dungeonographer, Evernote
MNBlockHead is offline   #19 Reply With Quote
MNBlockHead
Senior Member
 
Join Date: Dec 2014
Location: Twin Cities Area, MN, USA
Posts: 1,325

Old September 8th, 2015, 03:38 PM
One thing that I've been playing around with is how to use PE to help with applying tags.

I would like to have a hotkey that would automatically select and enter one or more tags. That is not too difficult as I only need to use HOME to go to the top and then count the number of down arrow presses to reach the tag I want. But the issue is that if you add a tag above the tag in the PE macro, you break the macro.

Unfortunately, you can't just start typing a word to go to a tag. Tagging is one of the things that I most want to automate in RW, but tagging in RW is very mouse dependent. It is not keyboard friendly at all.

RW Project: Dungeons & Dragons 5th edition homebrew world
Other Tools: CampaignCartographer, Cityographer, Dungeonographer, Evernote
MNBlockHead is offline   #20 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:12 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.