Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

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

Old June 13th, 2018, 11:38 PM
Hi,

i try to code a custom system and have a question, I didn't find the correct solution yet. Maybe it's only a syntax problem.

I have a Fighter class: ctyKampfer.
I have an 2 level for Fighter: ChTypSt.cttKampf2.
I have a ability "Trained with all weapons": sfcTrAlWaK

sfcTrAlWaK is bootstrapped by ctyKampfer. This works fine.

Now I wish the following:
sfcTrAlWaK should only be bootstrapped, when ChTypSt.cttKampf2 is assigned.

I tried to add a condition for sfcTrAlWaK:
In the setup phase with priority: 100

hero#ChTypSt.cttKampf2

Now the "Trained with all weapons" ability disppeares, if ChTypSt.cttKampf2 is assigned or not.

What is wrong?

EDIT: A (hero.tagis[ChTypStu.Stufe2] <> 0) makes a syntax or "hero.tagis" not defined error.
I searched in the wiki, but i did'nt find a solution.

Last edited by tkarn; June 13th, 2018 at 11:47 PM.
tkarn is offline   #1 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 14th, 2018, 03:18 AM
Look at what priority and phase ChTypSt.cttKampf2 is being assigned. It sounds like you’re checking the hero for the tag before it’s assigned, and those it’ll never be present for the check.

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is online now   #2 Reply With Quote
tkarn
Senior Member
 
Join Date: Jun 2007
Posts: 273

Old June 14th, 2018, 03:48 AM
Oh, thank you. That was the problem.
tkarn is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 06:39 AM.


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