Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   Accessing fields on focused minion (http://forums.wolflair.com/showthread.php?t=50962)

Gomo October 5th, 2014 01:40 PM

Accessing fields on focused minion
 
Hello.
I try to set a mechanism which access a field of Minion.
To be specific it is a field which contain current stamina points.
I've managed to retrive values of attributes like this:
Code:

                perform hero.childfound[mtHorse].setfocus
                doneif (state.isfocus = 0)
@text = hero.childfound[mtHorse].minion.child[attrStr].field[trtFinal].value

but I can't acces fields which exist in Actor component of minion.
Is it possible to acces those fields or I have to create an attribute which would get those values ?
Next thing I would do it is to modify those values from Master so probably solution with attribute wouldn't allow me to do this.

Mathias October 5th, 2014 04:26 PM

Code:

hero.childfound[mtHorse].minion.child[actor].field[Field's Id].value

Gomo October 6th, 2014 09:42 AM

Thanks, It works.


All times are GMT -8. The time now is 11:46 AM.

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