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
Gomo
Member
 
Join Date: Apr 2014
Posts: 50

Old May 1st, 2014, 04:32 AM
Hello.
I'm new here so I apologise if I post in wrong place and wrong way.

I am trying to implement Action point into my system.
Right now I've managed to set it up in similar way to power points (except it is calculated differently).
But I want to go one step further and make it faster to acces and modify by making an similar incrementer that ws used for Initiatibe in tactic form.
I copied the code from Initiative but I stuck at point when I want to access action points field.
I've got such a massage:

Code:
Hero Lab was forced to stop compilation after the following errors were detected:

Portal 'totalacts' - Reference to incompatible field type/style/behavior based on portal type
The Field which I specify is copy of health field used elsewhere in incrementer
(dmgDamage)and lies within Actor component. Here is code for it:

Code:
<field
      id="acActNow"
      name="Current Actions"
      type="derived">
      <calculate phase="Traits" priority="5100" name="Calc acHPNow">
        <after name="Calc acHPMax"/><![CDATA[
        ~@value = field[acHPMax].value - hero.usagepool[DmgNet].value
		@value = 5
        ]]></calculate>
      </field>
So what I am missing / doing wrong?
Is it some limitation to access derived fields by incrementer?
I should mention that I am not a programmer I merely get some low level script experience.
Gomo is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 1st, 2014, 08:19 AM
Derived fields are intended to only be controlled by scripts.

If you want to let the user control the value of that field with an incrementer, it needs to have type="user", and cannot have a calculate script.
Mathias is offline   #2 Reply With Quote
Gomo
Member
 
Join Date: Apr 2014
Posts: 50

Old May 1st, 2014, 10:25 AM
Thanks, It works.
Gomo is offline   #3 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 12:40 AM.


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