Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
fierop
Junior Member
 
Join Date: Feb 2010
Posts: 24

Old February 18th, 2010, 09:20 AM
Hey guys, would there be any chance of say some advanced scripting tutorials or even samples being published for the authoring kit?
fierop is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old February 21st, 2010, 12:32 AM
We could probably write 1000 sample scripts and still not cover everything that HL can do. So perhaps you could outline exactly what types of scripts you're seeking examples for. Then we can either write an an appropriate example or point you to a script that already exists as a good example. Tell us what you need and we'll do our best to provide it.
rob is offline   #2 Reply With Quote
westcpw
Member
 
Join Date: Jan 2010
Posts: 42

Old March 7th, 2010, 01:52 AM
I have this script for a custom ability (activated, counter)

#trkmax[cArdDram] += (hero.child[aINT].value/2)

and cant figure it out....
westcpw is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 7th, 2010, 08:44 AM
hero.child[aINT].field[aModValue].value/2 for the INT bonus / 2 or hero.child[aINT].field[aFinalVal].value/2 for the final value / 2.

You'll also want to round that down:

round(hero.child[aINT].field[aFinalVal].value/2, 0, -1)

round (thing to round, 0 decimals, round down)

In the editor, press help - that will give you the editor manual. There's a "Reference Information" page there that will give you information like this.

For future reference, please post questions that apply to specific game systems in the forum for that game system, rather than the authoring kit forum (which is for creating new game systems with the authoring kit).

Last edited by Mathias; March 7th, 2010 at 08:47 AM. Reason: Added rounding instructions
Mathias is online now   #4 Reply With Quote
westcpw
Member
 
Join Date: Jan 2010
Posts: 42

Old March 14th, 2010, 01:48 AM
Thanks!

Will post under the PF forum although may be valid for any game system.
westcpw is offline   #5 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 01:26 PM.


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