IsMaterial

For builders to discuss and ask building questions.
Post Reply
Xryon
Sword Master
Sword Master
Posts: 233
Joined: Thu Aug 25, 2005 5:24 am
Location: Waterdeep

IsMaterial

Post by Xryon » Sun Feb 01, 2015 9:19 pm

Related to my other question, but not enough to put it in the same topic: do materials have header and sub types? For example, if I use a prog to check for material_metal, will it also check for steel, mithril, gold, etc?
User avatar
Algon
Sword Grand Master
Sword Grand Master
Posts: 1070
Joined: Thu Aug 14, 2003 12:44 am
Location: Waterdeep

Re: IsMaterial

Post by Algon » Sun Feb 01, 2015 10:06 pm

From what I understand Metals such as gold and silver are their own types. So you would likely have to check against metal, gold, and silver separately. At least I think so, someone more knowledgeable would know better!
Counting bodies like sheep...to the rhythm of the war drums. ~~~ Maynard
User avatar
Harroghty
Staff
Staff
Posts: 9695
Joined: Tue Jul 27, 2004 5:38 pm

Re: IsMaterial

Post by Harroghty » Sun Feb 01, 2015 10:52 pm

As noted in the if check listing, you need to check by bit vector (the number) not the name. You would need to check for each specific one. The materials are discrete.
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
Xryon
Sword Master
Sword Master
Posts: 233
Joined: Thu Aug 25, 2005 5:24 am
Location: Waterdeep

Re: IsMaterial

Post by Xryon » Sun Feb 01, 2015 11:05 pm

Okay. I was just using metal as a vague parameter to get my intent across. Appreciate the responses, I'll adjust accordingly.
Post Reply