User:Browncoat Jayson/Loot Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
URLENCODE --> {{urlencode:Animal Hide}} | |||
The goal of this sandbox is to fix the way we are assigning properties to loot, which should allow us to query it. I'm attempting to send it to a Property called "Has loot" using a format of "Item Name/Creature Name", so we can then do the following: | The goal of this sandbox is to fix the way we are assigning properties to loot, which should allow us to query it. I'm attempting to send it to a Property called "Has loot" using a format of "Item Name/Creature Name", so we can then do the following: | ||
| Line 52: | Line 54: | ||
{{#ask: [[has loot::~Animal?Hide*]] | {{#ask: [[has loot::~Animal?Hide*]] | ||
|format=ul | |format=ul | ||
|?has loot= | |||
}} | |||
{{#ask: [[has loot::~Animal?Hide*]] | |||
|format=list | |||
|?has loot= | |?has loot= | ||
}} | }} | ||
| Line 69: | Line 75: | ||
| | | | ||
|} | |} | ||
{{Query loot test|Animal Hide}} | |||
Revision as of 20:34, 19 April 2018
URLENCODE --> Animal+Hide
The goal of this sandbox is to fix the way we are assigning properties to loot, which should allow us to query it. I'm attempting to send it to a Property called "Has loot" using a format of "Item Name/Creature Name", so we can then do the following:
- Query for "Has loot", which should return a bunch of pages and the property names they are assigned
- Query "Has loot::~Animal_Hide*" (begins with the test "Animal Hide")
- "Loot Sandbox" has drop "Animal Hide/Test Wolf"
- Use string manipulation to separate the values
- "Test Wolf" in scene "Loot Sandbox" drops "Animal Hide"
- We could further query the scene for things like what tier it is, and ultimately create an array to populate all of this
- "Animal Hide" is found on "Test Wolf (Tier 4)"
- "Animal Hide" is found on "Test Tree (Tier 4)" (Some queries will return resource nodes, like wierd Wolfsbane trees...)
- "Animal Hide" is found in "Supply Bundle (Mauve)" (Because not all query pages will be scenes)
This is all still a work in progress...
Bestiary
Template:Creatureboxtop Template:Creaturebox test Template:Creaturebox test Template:Creatureboxbottom
Resources
Template:Resourceboxtop Template:Resourcebox test Template:Resourceboxbottom
Query
Example
Animal Hides can be found on the following:
| Source | Located in |
|---|---|
| Test Bear | Loot Sandbox (Tier 4), Other Scene (Tier 2)... |
| Test Wolf | Loot Sandbox (Tier 4), Other Scene (Tier 2)... |
| Supply Bundle (Mauve) |