Junior Member
Join Date: Feb 2010
Posts: 24
|
Hey guys, would there be any chance of say some advanced scripting tutorials or even samples being published for the authoring kit?
|
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
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.
|
#2 |
Member
Join Date: Jan 2010
Posts: 42
|
I have this script for a custom ability (activated, counter)
#trkmax[cArdDram] += (hero.child[aINT].value/2) and cant figure it out.... |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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 |
#4 |
Member
Join Date: Jan 2010
Posts: 42
|
Thanks!
Will post under the PF forum although may be valid for any game system. |
#5 |
|
|