• 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

Using clmt:something<=X-slots

  • Thread starter Thread starter kg_kenney at yahoo.com
  • Start date Start date
K

kg_kenney at yahoo.com

Guest
Hi there,

I've been working on AB files for the Confrontation mini game for
some time. Here's my problem:

I've set up the "Spells" Item Catagory for magic users to build their
spell list. Magic users have a stat called Power that determines how
many spells they can choose. So, I thought that setting up the Spells
Item Catagory with 30 Slots and using the clmt:spel<=Pow-slots for
each magic user would work just fine....but it doesn't. I've tested
it and no matter what the Power of the magic user...it always lets
them select up to 30 Slots worth of spells.

Help me, AB group, you're my only hope...
Cheers!
Ken


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/z3tQYA/hP.FAA/AG3JAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
At 03:15 PM 4/30/2003 +0000, you wrote:
>Hi there,
>
>I've been working on AB files for the Confrontation mini game for
>some time. Here's my problem:
>
>I've set up the "Spells" Item Catagory for magic users to build their
>spell list. Magic users have a stat called Power that determines how
>many spells they can choose. So, I thought that setting up the Spells
>Item Catagory with 30 Slots and using the clmt:spel<=Pow-slots for
>each magic user would work just fine....but it doesn't. I've tested
>it and no matter what the Power of the magic user...it always lets
>them select up to 30 Slots worth of spells.

It may let them actually select the spells, but have you checked the
validation messages afterwards? I think clmt gives a 'soft' error, i.e. it
lets you break its rule, then complains, rather than not letting you do
anything that would break the rule.


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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/z3tQYA/hP.FAA/AG3JAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
Colen,
Thanks for your help.
I put in a message for when the user takes spells over their limit.
However, it only works when the test is on count or points. For some
reason it won't alert the user when it is set to test against the
amount of slots filled.

Since it definitely works on the amount of slots available as it is
set in the datadef file, I might set up a series of spell list Item
Catagories with different amounts of available slots. I can then use
the Element xcat Special Attribute to link one spell to several
different spell list Item Catagories. And, on the magic user side,
use spec:+xxxx to enable the magic user to select spells from the
Item Catagory that matches his Power score. . . Does all that make
sense?

Thanks again
Ken

--- In armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
wrote:
> At 03:15 PM 4/30/2003 +0000, you wrote:
> >Hi there,
> >
> >I've been working on AB files for the Confrontation mini game for
> >some time. Here's my problem:
> >
> >I've set up the "Spells" Item Catagory for magic users to build
their
> >spell list. Magic users have a stat called Power that determines
how
> >many spells they can choose. So, I thought that setting up the
Spells
> >Item Catagory with 30 Slots and using the clmt:spel<=Pow-slots for
> >each magic user would work just fine....but it doesn't. I've
tested
> >it and no matter what the Power of the magic user...it always lets
> >them select up to 30 Slots worth of spells.
>
> It may let them actually select the spells, but have you checked
the
> validation messages afterwards? I think clmt gives a 'soft' error,
i.e. it
> lets you break its rule, then complains, rather than not letting
you do
> anything that would break the rule.
>
>
> --
> Colen McAlister (colen@w...)
> Lone Wolf Development
www.wolflair.com



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/KXUxcA/fNtFAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
At 02:47 AM 5/1/2003 +0000, you wrote:
>Colen,
>Thanks for your help.
>I put in a message for when the user takes spells over their limit.
>However, it only works when the test is on count or points. For some
>reason it won't alert the user when it is set to test against the
>amount of slots filled.

Interesting. Can you upload your datafiles to the Files section
(http://groups.yahoo.com/armybuilder/files/) so I could take a look?

>Since it definitely works on the amount of slots available as it is
>set in the datadef file, I might set up a series of spell list Item
>Catagories with different amounts of available slots. I can then use
>the Element xcat Special Attribute to link one spell to several
>different spell list Item Catagories. And, on the magic user side,
>use spec:+xxxx to enable the magic user to select spells from the
>Item Catagory that matches his Power score. . . Does all that make
>sense?

It sounds like it'd work, but I think the way you're trying to do it now
would be a better way. Please upload the files (and give me a description
of where to find the problem) and I'll investigate.

Thanks :)


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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/KXUxcA/fNtFAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
--- In armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
> Interesting. Can you upload your datafiles to the Files section
> (http://groups.yahoo.com/armybuilder/files/) so I could take a look?

Colen,

Ok, I've redone the tutorial file and uploaded it to the files
section (tut.ab "clmt Problem").

I figured it would be easier to explain and give examples. So, the
Wizard Spells now has 15 slots in the datadef file, and each element
has been changed to take up 5 slots each, and the Elven Mage has this
External Attribute:
--> clmt:spel<=5-slots-msg=mspower <--

So, when building his spell book, if you + all four spells, the
Create Item button turns into Invalid Item...that's perfect.

But if you were to + on two spells thus creating a book with 10 slots
full, the mspower message doesn't show up.

Thanks again for your help!
Ken


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/cjB9SD/od7FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
At 02:29 PM 5/1/2003 +0000, you wrote:
>--- In armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
> > Interesting. Can you upload your datafiles to the Files section
> > (http://groups.yahoo.com/armybuilder/files/) so I could take a look?
>
>Colen,
>
>Ok, I've redone the tutorial file and uploaded it to the files
>section (tut.ab "clmt Problem").
>
>I figured it would be easier to explain and give examples. So, the
>Wizard Spells now has 15 slots in the datadef file, and each element
>has been changed to take up 5 slots each, and the Elven Mage has this
>External Attribute:
>--> clmt:spel<=5-slots-msg=mspower <--
>
>So, when building his spell book, if you + all four spells, the
>Create Item button turns into Invalid Item...that's perfect.
>
>But if you were to + on two spells thus creating a book with 10 slots
>full, the mspower message doesn't show up.

Ah! Thanks for the upload, it all becomes clear.

Firstly, the reason why what you're doing isn't working is because the
'-slots' option in the clmt attribute doesn't refer to the number of
constructed item slots used. Instead, it refers to the *number of item
slots* used by items. For example, in the datadef tutorial file:

Banner | stnd | stnd | 1 | 1 |
reg | 0 | 0 | 1
Wizard Spells | spel | spel | 1 | 1 |
wiz | 15 | 0 | 0

Note the very last attribute, which is '1' for banners and '0' for spells.
This is the number of ' item slots' that an item for this category takes
up. If a unit has a maximum limit of 2 items, it could only take two
banners, but it could take an unlimited number of wizard spells, because
they cost 0 slots each. It's this 'slots' value that clmt refers to. The
same terminology is unfortunately used for constructed items, which should
probably be corrected in a future release.

So what's happening is that you're saying "Make sure less than 5 slots are
used", but because wizard spells take up no slots, there are never any
slots used, so the value is always 0; 0 < 5 is always true, so the rule is
'correct' and not working the way you think it should.

A question: Why are you using constructed items to represent spells? Why
not just have each spell as 1 item? Then you can keep the wizard spells
taking up 0 slots each, and use the -count instead of -slots version of
clmt (e.g., clmt:spel<=5-count-msg=mspower), and everything should work
fine. Or you could make the wizard spells take up 1 slot each, and impose a
hard item count limit to physically prevent people from taking more than
the right number of spells.

Hope this helps,


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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/cjB9SD/od7FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
--- In armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
wrote:
> A question: Why are you using constructed items to represent
spells? Why not just have each spell as 1 item? Then you can keep the
wizard spells taking up 0 slots each, and use the -count instead of -
slots version of clmt (e.g., clmt:spel<=5-count-msg=mspower), and
everything should work fine. Or you could make the wizard spells take
up 1 slot each, and impose a hard item count limit to physically
prevent people from taking more than the right number of spells.

An answer: Well, in Confrontation a spell has a Power rating from 1
to around 7. A powerful Wizard might have a Power ability of 12,
which enables him to take, say two really potent spells of power 6,
or a whole bunch of Power 1 and 2 spells; all of which have to total
to 12 or less. So he really has no limit on the pure number of spells
he can take, but on the "Power" of the spells. And that is what I've
been having trouble with, and why I thought using Elements, with
their number of slots attribute, would be a good choice.

Thanks again!
Ken


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
--- Kenneth Kenney <kg_kenney@yahoo.com> a écrit : > --- In
armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
> wrote:
> > A question: Why are you using constructed items to represent
> spells? Why not just have each spell as 1 item? Then you can keep the
>
> wizard spells taking up 0 slots each, and use the -count instead of -
> slots version of clmt (e.g., clmt:spel<=5-count-msg=mspower), and
> everything should work fine. Or you could make the wizard spells take
>
> up 1 slot each, and impose a hard item count limit to physically
> prevent people from taking more than the right number of spells.
>
> An answer: Well, in Confrontation a spell has a Power rating from 1
> to around 7. A powerful Wizard might have a Power ability of 12,
> which enables him to take, say two really potent spells of power 6,
> or a whole bunch of Power 1 and 2 spells; all of which have to total
> to 12 or less. So he really has no limit on the pure number of spells
>
> he can take, but on the "Power" of the spells. And that is what I've
> been having trouble with, and why I thought using Elements, with
> their number of slots attribute, would be a good choice.
>
> Thanks again!
> Ken
>
>
Hi,

I am the French developper of Confrontation files. Here is how I manage
the spells :

External Attributes of the unit:
clmt:sotn+sort<=Pouv-slots-msg=aatropso
(sotn and sort are spells categories of item, Pouv the power of the
wizard (for non 'Guerriers mages' wizards, I create a special
caracteristique power*2)
The wizard may take (Power) spells + (1 or 2) magic items.

Each spell has irng:x-x attribute (x from 0 to 7) and call a tweak for
single cost.

Ex :
Meliador has 7 in power, can take 14 spells power an 2 magical items.
=>items=16
He can take :
Tempete de lumière : spell power 0
L'art etrange : SP 6
Ange gardien : SP 4
Diffraction : SP 4

And 2 magicals items...

I did try with elements, but as specials spells appears I found
limitations to use elements.

good luck

Garfunkel


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

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