Jump to content
  • Sign Up

Lore Text on WP and Points of interest


Recommended Posts

What would be the easiest way for me build a plugin that would present in-game lore text upon getting a point of interest or waypoint unlocked? Furthermore, is there any way to pull GW2 wiki information and make that presentable in-game upon walking over certain parts of a map. I think it would not break game immersion and help build game lore.

Link to post
Share on other sites
  • 3 weeks later...

"On Unlock" is pretty much impossible as the API doesn't provide this information. Right now there is (AFAIK) no way to tell if a player has unlocked a certain POI/WP other than tracking if he ever got close to it.

What you could do is displaying lore based upon proximity to a point. You could read the coordinates of the player using the Mumble API and display informations when you get close to a certain point in the world. I guess the best way would be by showing some kind of pop-up window in one corner of the window which auto-closes after a certain amount of times if you leave the area or when the player closes the window.

And you can most likely pull most data from the wiki by using the name of a POI/area (at least when you're using english texts/names). For example the POI "Lair of the Beast" has a wiki page - https://wiki.guildwars2.com/wiki/Lair_of_the_Beast and MediaWiki also has an API you can use to pull data in multiple formats - for example: https://wiki.guildwars2.com/api.php?action=query&titles=Lair_of_the_Beast&prop=revisions&rvprop=content&format=jsonfm (as you can see, it uses the page-title to identify which page you wanna pull).

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...