modelling complex game economy with neo4j by yan cui at codemotion dubai
TRANSCRIPT
Bigfoot
Alice Lake
exists_in
Alluring Goat
can_attract
Bigfoot Toenail Clippings
Musket-teer Trap
lootscan_catch
Omar Lake
exists_in
Bigfoot
Alice Lake
exists_in
Alluring Goat
can_attract
Bigfoot Toenail Clippings
Musket-teer Trap
lootscan_catch
Omar Lake
exists_in
Strength = 502!Speed = 201!Intelligence = 184
Strength = 420!Speed = 210!Technology = 240
Bigfoot
Alice Lake
exists_in
Alluring Goat
can_attract
Bigfoot Toenail Clippings
Musket-teer Trap
lootscan_catch
Omar Lake
exists_in
CatchRate = 0.774
Bigfoot
Alice Lake
exists_in
Alluring Goat
can_attract
Bigfoot Toenail Clippings
Musket-teer Trap
lootscan_catch
Omar Lake
exists_in
Buy Price = 20BN!Sell Price = 482 Gold!Sellable = true!…
Bigfoot
Alice Lake
exists_in
Alluring Goat
can_attract
Bigfoot Toenail Clippings
Musket-teer Trap
lootscan_catch
Omar Lake
exists_inDropRate = 0.1
Bigfoot
Alice Lake
exists_in
Alluring Goat
can_attract
Bigfoot Toenail Clippings
Musket-teer Trap
lootscan_catch
Omar Lake
exists_in
BigfootAlice Lake
exists_in
Alluring Goatcan_attract
Bigfoot Toenail Clippings
Musket-teer Trap
loots
can_catch
Omar Lakeexist
s_in
Yowie
Yetican_ca
tch
can_catch
Apprentice’s Workshop
can_make
GoatHoney
Yeti Fur
requires
loots
makes
Alluring Goat Recipe
requires requires
Beeswax
loots
Bee Hiveharvests
McDonald’s Farm
sells
loots
Goat’s Milk
harvests
London
exists_in
Peryton Fawn Decoy Recipe
requires
Peryton Fawn Decoy
makes
BigfootAlice Lake
exists_in
Alluring Goatcan_attract
Bigfoot Toenail Clippings
Musket-teer Trap
loots
can_catch
Omar Lakeexist
s_in
Yowie
Yetican_ca
tch
can_catch
Apprentice’s Workshop
can_make
GoatHoney
Yeti Fur
requires
loots
makes
Alluring Goat Recipe
requires requires
Beeswax
loots
Bee Hiveharvests
McDonald’s Farm
sells
loots
Goat’s Milk
harvests
London
exists_in
Peryton Fawn Decoy Recipe
requires
Peryton Fawn Decoy
makes
BigfootAlice Lake
exists_in
Alluring Goatcan_attract
Bigfoot Toenail Clippings
Musket-teer Trap
loots
can_catch
Omar Lakeexist
s_in
Yowie
Yetican_ca
tch
can_catch
Apprentice’s Workshop
can_make
GoatHoney
Yeti Fur
requires
loots
makes
Alluring Goat Recipe
requires requires
Beeswax
loots
Bee Hiveharvests
McDonald’s Farm
sells
loots
Goat’s Milk
harvests
London
exists_in
Peryton Fawn Decoy Recipe
requires
Peryton Fawn Decoy
makes
BigfootAlice Lake
exists_in
Alluring Goatcan_attract
Bigfoot Toenail Clippings
Musket-teer Trap
loots
can_catch
Omar Lakeexist
s_in
Yowie
Yetican_ca
tch
can_catch
Apprentice’s Workshop
can_make
GoatHoney
Yeti Fur
requires
loots
makes
Alluring Goat Recipe
requires requires
Beeswax
loots
Bee Hiveharvests
McDonald’s Farm
sells
loots
Goat’s Milk
harvests
London
exists_in
Peryton Fawn Decoy Recipe
requires
Peryton Fawn Decoy
makes
MATCH!
(wb:BaseItem { Name:"White Bread"})!
-[rel:CRAFTS | IS_USED_IN*1..]!
->(i:BaseItem)!
RETURN i, rel, wb
MATCH!
(wb:BaseItem { Name:"White Bread"})!
-[rel:CRAFTS | IS_USED_IN*1..]!
->(i:BaseItem)!
RETURN i, rel, wb
Node-[rel]->Node
MATCH!
(wb:BaseItem { Name:"White Bread"})!
-[rel:CRAFTS | IS_USED_IN*1..]!
->(i:BaseItem)!
RETURN i, rel, wb
MATCH!
(wb:BaseItem { Name:"White Bread"})! -[rel:CRAFTS | IS_USED_IN*1..]!
->(i:BaseItem)!
RETURN i, rel, wb
MATCH!
(wb:BaseItem { Name:"White Bread"})!
-[rel:CRAFTS | IS_USED_IN*1..]!
->(i:BaseItem)!
RETURN i, rel, wb
MATCH!
(wb:BaseItem { Name:"White Bread"})!
-[rel:CRAFTS | IS_USED_IN*1..]! ->(i:BaseItem)!
RETURN i, rel, wb
MATCH!
(wb:BaseItem { Name:"White Bread"})!
-[rel:CRAFTS | IS_USED_IN*1..]!
->(i:BaseItem)!
RETURN i, rel, wb
MATCH! !
(fruit)<-[:FORAGES]-(tree)!
-[:EXISTS_IN]->(spot)!
WHERE! !
fruit.Name=‘Durian’ OR!
fruit.Name=‘Dragonfruit’!
RETURN fruit, tree, spot
MATCH! !
(fruit)<-[:FORAGES]-(tree)!
-[:EXISTS_IN]->(spot)!
WHERE! !
fruit.Name=‘Durian’ OR!
fruit.Name=‘Dragonfruit’!
RETURN fruit, tree, spot
Node<-[r1]-Node-[r2]->Node
MATCH! !
(fruit)<-[:FORAGES]-(tree)!
-[:EXISTS_IN]->(spot)!
WHERE! ! fruit.Name=‘Durian’ OR! fruit.Name=‘Dragonfruit’!RETURN fruit, tree, spot
MATCH!
(monster1:Monster)-[:LOOTS]->(loot)!
-[r:IS_USED_IN | CRAFTS*0..]->(bait)!
-[:CAN_ATTRACT]->(monster2)!
RETURN monster1, monster2
@theburningmonk
github.com/theburningmonk
theburningmonk.com