User:Browncoat Jayson/Loot Sandbox

From SotA Wiki
Jump to navigation Jump to search

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 Working!
Query "Has loot::~Animal_Hide*" (begins with the test "Animal Hide") Working!
"Loot Sandbox" has drop "Animal Hide/Test Wolf" Working!
  • Use string manipulation to separate the values Working!
"Test Wolf" in scene "Loot Sandbox" drops "Animal Hide" Working!
  • 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)" Working!
"Animal Hide" is found on "Test Tree (Tier 4)" (Some queries will return resource nodes, like wierd Wolfsbane trees...) Should Work
"Animal Hide" is found in "Supply Bundle (Mauve)" (Because not all query pages will be scenes) Should Work
  • Group these together by animal, so each row returns multiple scenes:
"Animal Hide" is found on "Test Wolf" in "Scene A (Tier 4), Scene B (Tier 2)" Broken, one per line currently

This is all still a work in progress...

Bestiary[edit]

Template:Creatureboxtop Template:Creaturebox test Template:Creaturebox test Template:Creatureboxbottom

Resources[edit]

Template:Resourceboxtop Template:Resourcebox test Template:Resourceboxbottom

Query[edit]

Example[edit]

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)

Template:Query loot test Template:Query loot array2