Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 5th, 2016, 04:24 AM
Script question ?
How can I generate a carriage return in a script string

Field[CustDesc].text = "1: test"

I would like this script to generate this:
1:
test
instead of
1:test
panda is offline   #1 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 07:26 AM
Not sure on this one myself; tried just putting a carriage return after the colan by hitting <enter> on the keyboard?

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #2 Reply With Quote
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 5th, 2016, 07:52 AM
then the script doesn't compile, I have tried /n but nono doesn't work
panda is offline   #3 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 07:56 AM
http://hlkitwiki.wolflair.com/index....age_Statements

Check the Append command. @newline or possibly <br>

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #4 Reply With Quote
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 5th, 2016, 08:01 AM
found, must use formatting tag {br}

so I tried:
/n -> no
<br/> -> no
{br/} -> no
{br} -> yes !!!
panda is offline   #5 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 08:02 AM
Added it to my growing list of useful scripting info.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #6 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 5th, 2016, 08:04 AM
Encoded text page from the HL Wiki.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #7 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old March 5th, 2016, 08:06 AM
ShadowChemosh:

It's absolutely amazing what you CAN"T find using Google.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #8 Reply With Quote
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 5th, 2016, 08:07 AM
I have to print that
panda is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 5th, 2016, 08:09 AM
Quote:
Originally Posted by Mergon View Post
ShadowChemosh:

It's absolutely amazing what you CAN"T find using Google.
Yes! In this case because while I love LW stuff the "words" they use for things is often very strange (ie bootstrap, Things, Picks, Gizmo, Entity, etc...). Making it hard to find sometimes.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #10 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 02:24 PM.


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