Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old December 7th, 2011, 01:24 PM
Quote:
Originally Posted by Mathias View Post
Could you re-phrase your question, please? I don't understand what you're asking here.
OK, I have a number of use field that is calculated by Level/3. But when I use this calculation, the result is a fraction. the number of use field shows me a value of 0.3333333 for a 1st level character.

The number of use has to be 0 for level 1 and 2, 1 for level 3 - 5 etc....

Is it now clear?

I tried round or trunc as a command, but it didn't work. Maybe there is a syntax error.

Last edited by tkarn; December 7th, 2011 at 01:26 PM.
tkarn is offline   #11 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 7th, 2011, 01:28 PM
Code:
 
field[trkMax].value += round (field[xAllLev].value/3,0,-1)
Mathias is online now   #12 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old December 7th, 2011, 01:30 PM
Ah thanx a lot. I didn't use the 2nd and 3rd value of the command.
tkarn is offline   #13 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 7th, 2011, 01:42 PM
Here's the wiki page where functions like round() are detailed:

http://hlkitwiki.wolflair.com/index....age_Intrinsics
Mathias is online now   #14 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old December 8th, 2011, 09:48 PM
Thak you, this page is very useful....
tkarn is offline   #15 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 10:20 AM.


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