Difference between revisions of "User:Krip7or"
From Fallen Sword Wiki
(Created page with "== Krip7or == Documentation enthusiast, static player name critic. I've also made wiki contributions under the name [https://wiki.fallensword.com/index.php/Special:Contributi...") |
|||
Line 1: | Line 1: | ||
== Krip7or == | == Krip7or == | ||
Documentation enthusiast, static player name critic. | Documentation enthusiast, static player name critic. | ||
+ | <br>See also [https://wiki.fallensword.com/index.php/Special:Contributions/MrSuave MrSuave]--a name that is no longer in use. | ||
− | + | ||
+ | == Javascript for the Wiki == | ||
+ | [[:User:Lusterless|Lusterless]] wrote JS code players can run in developer mode to generate sections of wiki pages. | ||
+ | |||
+ | === Realm Maps === | ||
+ | [[:User:Lusterless|Lusterless]] wrote this script to generate the cells of a map table. It must be run after a page refresh and requires manual tagging and review. | ||
+ | I made a tiny change so it would write tilePicture instead of tileSheet, all credit belongs to him. | ||
+ | |||
+ | <nowiki> | ||
+ | realmMap = GameData.realm().tiles.map((r, i) => | ||
+ | r.map((i) => `| {{tilePicture|${GameData.realm().set}_${GameData.realm().tile_lookup[i].i}}}`)) | ||
+ | GameData.realm().fixed.forEach((i) => | ||
+ | realmMap[i.y][i.x] = `| {{MapNote|image={{locationPicture|${GameData.realm().id}_${i.i}}}|target=${i.name}}}`) | ||
+ | realmMap.map((r, i) => `| ${i}\n` + r.join("\n") + `\n| ${i}\n`).join("|-\n") | ||
+ | </nowiki> | ||
Revision as of 10:17, 16 November 2023
Contents |
Krip7or
Documentation enthusiast, static player name critic.
See also MrSuave--a name that is no longer in use.
Javascript for the Wiki
Lusterless wrote JS code players can run in developer mode to generate sections of wiki pages.
Realm Maps
Lusterless wrote this script to generate the cells of a map table. It must be run after a page refresh and requires manual tagging and review. I made a tiny change so it would write tilePicture instead of tileSheet, all credit belongs to him.
realmMap = GameData.realm().tiles.map((r, i) => r.map((i) => `| {{tilePicture|${GameData.realm().set}_${GameData.realm().tile_lookup[i].i}}}`)) GameData.realm().fixed.forEach((i) => realmMap[i.y][i.x] = `| {{MapNote|image={{locationPicture|${GameData.realm().id}_${i.i}}}|target=${i.name}}}`) realmMap.map((r, i) => `| ${i}\n` + r.join("\n") + `\n| ${i}\n`).join("|-\n")
Krip7or | |
Joined: | July 28, 2009 |
Name: | Krip7or |
Medals: | |
Guild: | Halls of Justice |
Allies: | LksTwice, Sealtiel, wolfvanes |
Enemies: | Accepting applications. 😈 |