• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding allies dynamically

  • Thread starter Thread starter fusilier at kc.rr.com
  • Start date Start date
F

fusilier at kc.rr.com

Guest
Searching through the archives, I couldn't find anything that related
to what I'm trying to do. So, maybe someone has a suggestion . . .

I have a generic character who is selected at runtime; his army has
no allies. But, he can pick a magical item that allows allies. So
what I want to do is to have the Allies list repopulated with the
race which the magic item will allow him to recruit. Other than
that, I want that entire race to be hidden.

As an example, all players can build only human armies. By taking a
magic book of summoning (item), the player will now be allowed to add
demons (from a list of demonic units) to his army.

So, how do I structure the definition of the magic item to repopulate
the list of allies at runtime?

Thanks.


To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
At 05:54 AM 1/21/2004, you wrote:
>Searching through the archives, I couldn't find anything that related
>to what I'm trying to do. So, maybe someone has a suggestion . . .
>
>I have a generic character who is selected at runtime; his army has
>no allies. But, he can pick a magical item that allows allies. So
>what I want to do is to have the Allies list repopulated with the
>race which the magic item will allow him to recruit. Other than
>that, I want that entire race to be hidden.
>
>As an example, all players can build only human armies. By taking a
>magic book of summoning (item), the player will now be allowed to add
>demons (from a list of demonic units) to his army.
>
>So, how do I structure the definition of the magic item to repopulate
>the list of allies at runtime?

I don't think you can. :(

The only way (IIRC) that you can add allies is through the 'ally:' race
attribute, which can only depend on the mode, race, and so forth. The only
way I can see of doing what you need is always allowing the 'Horrible
Demon' race to be taken as allies, but then throwing up a validation error
if any 'Horrible Demon' units are taken without the 'Magic Book of Summoning'.

Hope this helps,


--
Colen McAlister (colen@wolflair.com)
Lone Wolf Development www.wolflair.com



To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/IMSolB/TM
---------------------------------------------------------------------~->

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
Figured that's what I'd have to do, although it isn't as elegant a
solution as I'd like. I got motivated to try it when I figured out
how to have categories of items appear and disappear from the drop-
down list by adding or subtracting other items. Oh well.

--- In armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
wrote:
> At 05:54 AM 1/21/2004, you wrote:
> >Searching through the archives, I couldn't find anything that
related
> >to what I'm trying to do. So, maybe someone has a suggestion . . .
> >
> >I have a generic character who is selected at runtime; his army has
> >no allies. But, he can pick a magical item that allows allies. So
> >what I want to do is to have the Allies list repopulated with the
> >race which the magic item will allow him to recruit. Other than
> >that, I want that entire race to be hidden.
> >
> >As an example, all players can build only human armies. By taking
a
> >magic book of summoning (item), the player will now be allowed to
add
> >demons (from a list of demonic units) to his army.
> >
> >So, how do I structure the definition of the magic item to
repopulate
> >the list of allies at runtime?
>
> I don't think you can. :(
>
> The only way (IIRC) that you can add allies is through the 'ally:'
race
> attribute, which can only depend on the mode, race, and so forth.
The only
> way I can see of doing what you need is always allowing
the 'Horrible
> Demon' race to be taken as allies, but then throwing up a
validation error
> if any 'Horrible Demon' units are taken without the 'Magic Book of
Summoning'.
>
> Hope this helps,
>
>
> --
> Colen McAlister (colen@w...)
> Lone Wolf Development
www.wolflair.com


To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/IMSolB/TM
---------------------------------------------------------------------~->

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
What you can do is add validation that will show an error if the user
attempts to add a certain type of unit without taking the item that gives
them access to it. As far as adding/removing units from sight in the list
of available units while you're in the middle of creating the roster
that's not possible; they're either available or not.

Mark


--- jizbrand <fusilier@kc.rr.com> wrote:
> Searching through the archives, I couldn't find anything that related
> to what I'm trying to do. So, maybe someone has a suggestion . . .
>
> I have a generic character who is selected at runtime; his army has
> no allies. But, he can pick a magical item that allows allies. So
> what I want to do is to have the Allies list repopulated with the
> race which the magic item will allow him to recruit. Other than
> that, I want that entire race to be hidden.
>
> As an example, all players can build only human armies. By taking a
> magic book of summoning (item), the player will now be allowed to add
> demons (from a list of demonic units) to his army.
>
> So, how do I structure the definition of the magic item to repopulate
> the list of allies at runtime?
>
> Thanks.
>
>


=====
WF6 Army Builder File Manager
Direwolf FAQ Council - Army Builder Liaison
-
Warhammer Club - Vancouver, BC
http://www.WCP-Vancouver.com

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
Back
Top