User talk:Syntaxaire: Difference between revisions

7,497 bytes added ,  18:14, 28 July 2019
 
(18 intermediate revisions by 2 users not shown)
Line 5: Line 5:


* I have added colorstr to the template, so just set it to ColorString. [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 15:56, 7 July 2019 (UTC)
* I have added colorstr to the template, so just set it to ColorString. [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 15:56, 7 July 2019 (UTC)
* Done [[User:Syntaxaire|Syntaxaire]] ([[User talk:Syntaxaire|talk]]) 02:06, 11 July 2019 (UTC)


== wiki image naming conventions do not follow in game image names ==
== wiki image naming conventions do not follow in game image names ==
Line 13: Line 14:


[[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 14:50, 7 July 2019 (UTC)
[[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 14:50, 7 July 2019 (UTC)
* Done [[User:Syntaxaire|Syntaxaire]] ([[User talk:Syntaxaire|talk]]) 02:28, 11 July 2019 (UTC)
== new values for template item ==
just a reminder that:
*chargeperdram is a new attribute and should be used for liquid cells.
*charge is renamed to chargeuse
*wornon is a list that is separated by , and is based on the WornOn attribute. dont use wikilinks
*usesslots is a list that is separated by , and is based on the UsesSlots attribute. dont use wikilinks
will edit this section if I add more. [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 17:55, 7 July 2019 (UTC)
* Done [[User:Syntaxaire|Syntaxaire]] ([[User talk:Syntaxaire|talk]]) 02:57, 11 July 2019 (UTC)
* reputationbonus now added. it takes a list of [[Template:Reputation bonus]] with the syntax <syntaxhighlight lang="xml">
| reputationbonus = {{Reputation bonus|(faction in plaintext)|(bonus)|(optional 3rd argument of string that contains the owner. can be left alone 98% of the time as it defaults to the page name it's called)}}
{{Reputation bonus|(faction in plaintext2)|(bonus2)|(optional 3rd argument)}} etc...
</syntaxhighlight> [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 16:07, 11 July 2019 (UTC)
**Done [[User:Syntaxaire|Syntaxaire]] ([[User talk:Syntaxaire|talk]]) 16:48, 13 July 2019 (UTC)
* More rows related to food are added and have a row in [[Template:Item/doc]]. still not done but the ones i'm not done yet are slightly harder to implement:[[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 20:25, 13 July 2019 (UTC)
** <code>healing</code> is what stuff like witchwood heals. is a string so can take dice rolls
** <code>butcheredinto</code> is what a corpse is butchered into. it takes Wikitext links to the item, and is stored as a list separated by , for corpses with multiple butcher items.
** <code>harvestedinto</code> is what you harvest from the item. takes a wikilink to the item.
** <code>preservedinto</code> is what you expect. wikilink to item.
** <code>preservedquantity</code> is the number of preserved items. integer
** <code>exoticfood</code> is a boolean that lets cargo know if you need to specifically choose this food to preserve it. yes/no
***Done [[User:Syntaxaire|Syntaxaire]] ([[User talk:Syntaxaire|talk]]) 22:00, 13 July 2019 (UTC)
* the last of cooking related attributes are added (for now). the values are:
** <code>ismeat</code>, <code>isplant</code>, <code>isfungus</code> which should be explanatory. takes yes/no
** <code>cookeffect</code> can be found on part Name="PreparedCookingIngredient" type ="___". takes string.
** <code>oneat</code> is what happens on eat. this can be found on the ___OnEat parts. may be difficult to parse, so it's ok if explorer doesnt get this.
** in addition <code>reflect</code> that takes an integer that represents the % of damage reflected. this can be found on ModGlassArmor tier="_".
** sort of bug, but the current build of qud explorer only returns cold resistance and none of the other types. see: chrome mantle and quartzfur cloak. [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 00:59, 22 July 2019 (UTC)
* one tiny addition, <code>empsensitive</code> is a boolean (yes/no) that is based off of the value IsEMPSensitive="_". defaults to no [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 15:15, 24 July 2019 (UTC)
== new values for template character==
still a massive work in progress, but here are some changes:
* gender (just plaintext as specified in the xml) is an optional parameter. pronouns can also be specified but optional.
* inventory is a bulleted list of all inventoryobjectblueprints for a character that must call [[Template:Inventory]] for each item for cargo to be able to handle holding a list of items that contain more than just their name. its usage is
<syntaxhighlight lang="sql">
| inventory = {{Inventory|(item)|(quantity, defaults to 1)|(character name, defaults to pagename)}}
{{Inventory|(item2)|(quantity2, defaults to 1)|(optional pagename)}}
{{Inventory|(item3)|(quantity3, defaults to 1)|(optional pagename)}} etc...}}
</syntaxhighlight>
[[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 14:58, 9 July 2019 (UTC)
** edited the inventory template so it takes unnamed arguments. It's much easier to read and type now [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 16:10, 11 July 2019 (UTC)
*** inventory template has been edited to take equip status. it defaults to yes, so it should check for noequip/ if its not considered equipment to set to no. the usage is now:<syntaxhighlight lang="sql">
| inventory = {{Inventory|(item)|(quantity, defaults to 1)|(if equipped,yes/no)}}
{{Inventory|(item2)|(quantity2, defaults to 1)|(yes/no)}}
{{Inventory|(item3)|(quantity3, defaults to 1)|(yes/no)}} etc...}}</syntaxhighlight> not sure if there are cases where creatures have multiple of the same equipment, where one is equipped and one is not. please let me know if you find such cases! Specifically, this is for checking AV/DV granted by equipment. After including the base AV,DV, I plan on letting a cargo query determine the bonus av and dv granted by equipment and skills. [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 01:20, 22 July 2019 (UTC)
* new: not sure if it's the way to do it, but there are new values for each attribute: egodice, egotierdice for example. attributedice is NdM, and tierdice is (t-1)dM. the base attribute value is the same and takes the base integer value. Right now, these will not show up on the infobox because i'm mulling over how to present this information in a digestible format. [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 23:10, 10 July 2019 (UTC)
== Notes to self ==
* real line breaks in long descriptions
[[User:Syntaxaire|Syntaxaire]] ([[User talk:Syntaxaire|talk]]) 17:35, 8 July 2019 (UTC)
** Done [[User:Syntaxaire|Syntaxaire]] ([[User talk:Syntaxaire|talk]]) 02:06, 11 July 2019 (UTC)
== The Great Item Template Rehaul (and related templates) ==
Due to the giant column bloat, I separated more niche attributes to their own template. As such:
* the regular Item template will no longer take food related attributes except <code>preservedinto</code>/<code>preservedquantity</code> (although I am tempted to make tonics their own template as well).
* I also combined several of the boolean values (twohanded etc) to all be stored in the Extra attribute, but this won't effect how this data is being inputted.
* New template for foodstuffs, [[Template:Food]]. uses all the attribute names that Item used to have, just in a different template
* [[Template:Corpse]] is not an infobox, but a row similar to [[Template:Cybernetic]] that will be located in [[Corpse]]. This also means that this is the only template that stores <code>butchersinto</code> now.
** All attributes are the same except <code>disassemblesinto</code>,which takes the bits of a robot corpse.
** Corpse template is only for objects with "corpse" in the name, not just because it inherits from Corpse! [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 18:13, 28 July 2019 (UTC)
I have to finish setting up Corpses and related tables before I am able to make some pushes to qbe myself, but I plan on getting these eventually if you're not on them.
Let me know if there are any issues or questions you have! - [[User:Teamtoto|Teamtoto]] ([[User talk:Teamtoto|talk]]) 16:31, 28 July 2019 (UTC)