User talk:Aichon: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
Line 158: Line 158:
:: Yup, thanks! Me and [[User:Charles Whipplebotum|Charles Whipplebotum]] are working on filling it in :) Just wondering if it would be possible to install a counter for each status as well? Like how many buildings are safe, unknown, etc? [[User:Peralta|-- Johnny Twotoes]] 18:14, 14 August 2012 (BST)
:: Yup, thanks! Me and [[User:Charles Whipplebotum|Charles Whipplebotum]] are working on filling it in :) Just wondering if it would be possible to install a counter for each status as well? Like how many buildings are safe, unknown, etc? [[User:Peralta|-- Johnny Twotoes]] 18:14, 14 August 2012 (BST)
:::I can't think of any way to count items using wikicode off the top of my head (aside from hand-coding each individual count), so I wouldn't bet on it happening. It ''might'' be able to work at the suburb level (and even then, I have my doubts), but definitely not at the city level. {{User:Aichon/Signature}} 20:06, 14 August 2012 (BST)
:::I can't think of any way to count items using wikicode off the top of my head (aside from hand-coding each individual count), so I wouldn't bet on it happening. It ''might'' be able to work at the suburb level (and even then, I have my doubts), but definitely not at the city level. {{User:Aichon/Signature}} 20:06, 14 August 2012 (BST)
::::Here is one way. Write a if template that assigns a 1 if a status is true and a 0 otherwise. For a given building type in a suburb, stack the templates left to right so the final output is a binary number. For example, if a suburb has 4 hospitals, you would have four status templates (tied to Danger) in a row, the output might be something like 0110. I have a series of counters (up to 10 bit) that you would send that string to get the final count for a suburb. See [[User:MHSstaff/Projects/Counters|here for the counter templates]].-[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 20:25, 14 August 2012 (BST)
::::Here is one way. Write a if template that assigns a 1 if a status is true and a 0 otherwise. For a given building type in a suburb, stack the templates left to right so the final output is a binary number. For example, if a suburb has 4 hospitals, you would have four status templates (tied to Danger) in a row, the output might be something like 0110. I have a series of counters (up to 10 bit) that you would send that string to get the final count for a suburb (it would return a 2 for the above example). See [[User:MHSstaff/Projects/Counters|here for the counter templates]].-[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 20:25, 14 August 2012 (BST)
::::That map is going to look pretty sweet when finished. Nice job.-[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 20:35, 14 August 2012 (BST)
::::That map is going to look pretty sweet when finished. Nice job.-[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 20:35, 14 August 2012 (BST)



Revision as of 19:37, 14 August 2012

Aichon:Talk
Aichon
ˈīˌkän :Talk