Elanthipedia Renown Scrolls (script): Difference between revisions
No edit summary |
(The actual script was missing!) |
||
Line 97: | Line 97: | ||
<pre>The Crossing: room 325 |
<pre>The Crossing: room 325 |
||
'''Last updated:''' (4/18/2013)<br> |
'''Last updated:''' (4/18/2013)<br /> |
||
<br> |
<br /> |
||
{|class="wikitable sortable" |
{|class="wikitable sortable" |
||
|- |
|- |
||
Line 193: | Line 193: | ||
Simply copy and paste this into the appropriate place in the Elanthipedia article. |
Simply copy and paste this into the appropriate place in the Elanthipedia article. |
||
==Script== |
|||
<pre>Start: |
|||
echo |
|||
echo Guild: |
|||
echo |
|||
echo 1. Barbarian 7. Paladin |
|||
echo 2. Bard 8. Ranger |
|||
echo 3. Cleric 9. Thief |
|||
echo 4. Empath 10. Trader |
|||
echo 5. Moon Mage 11. Warrior Mage |
|||
echo 6. Necromancer |
|||
echo |
|||
echo Enter Guild Number: |
|||
matchre Barbarian ^1$ |
|||
matchre Bard ^2$ |
|||
matchre Cleric ^3$ |
|||
matchre Empath ^4$ |
|||
matchre MoonMage ^5$ |
|||
matchre Necromancer ^6$ |
|||
matchre Paladin ^7$ |
|||
matchre Ranger ^8$ |
|||
matchre Thief ^9$ |
|||
matchre Trader ^10$ |
|||
matchre WarriorMage ^11$ |
|||
matchwait |
|||
Barbarian: |
|||
var guild Barbarian |
|||
var file Barbarian |
|||
goto RoomDescCheck |
|||
Bard: |
|||
var guild Bard |
|||
var file Bard |
|||
goto RoomDescCheck |
|||
Cleric: |
|||
var guild Cleric |
|||
var file Cleric |
|||
goto RoomDescCheck |
|||
Empath: |
|||
var guild Empath |
|||
var file Empath |
|||
goto RoomDescCheck |
|||
MoonMage: |
|||
var guild Moon Mage |
|||
var file MoonMage |
|||
goto RoomDescCheck |
|||
Necromancer: |
|||
var guild Necromancer |
|||
var file Necromancer |
|||
goto RoomDescCheck |
|||
Paladin: |
|||
var guild Paladin |
|||
var file Paladin |
|||
goto RoomDescCheck |
|||
Ranger: |
|||
var guild Ranger |
|||
var file Ranger |
|||
goto RoomDescCheck |
|||
Thief: |
|||
var guild Thief |
|||
var file Thief |
|||
goto RoomDescCheck |
|||
Trader: |
|||
var guild Trader |
|||
var file Trader |
|||
goto RoomDescCheck |
|||
WarriorMage: |
|||
var guild Warrior Mage |
|||
var file WarriorMage |
|||
goto RoomDescCheck |
|||
RoomDescCheck: |
|||
if_2 goto RoomDesc |
|||
goto Format |
|||
RoomDesc: |
|||
put #log >RenownScroll-%file.txt {{ShopDescription |
|||
put #log >RenownScroll-%file.txt |roomname=$roomname |
|||
put #log >RenownScroll-%file.txt |desc=$roomdesc<br /> |
|||
put #log >RenownScroll-%file.txt $roomobjs<br /> |
|||
put #log >RenownScroll-%file.txt $roomexits |
|||
put #log >RenownScroll-%file.txt }} |
|||
Format: |
|||
put #log >RenownScroll-%file.txt $zonename: room $roomid |
|||
put #log >RenownScroll-%file.txt '''Last updated:''' ($date)<br /> |
|||
put #log >RenownScroll-%file.txt <br /> |
|||
put #log >RenownScroll-%file.txt {|class="wikitable sortable" |
|||
put #log >RenownScroll-%file.txt |- |
|||
echo |
|||
echo List Format: |
|||
echo |
|||
echo 1. Rank/Name/Race |
|||
echo 2. Rank/Name/Race/Circle |
|||
echo 3. Rank/Name/Circle/Race |
|||
echo 4. Rank/Name/Circle/Race/Guild |
|||
echo 5. Rank/Name/Race/Deity |
|||
echo 6. Rank/Name/Race/Deity/Circle |
|||
echo |
|||
echo Enter Format Number: |
|||
matchre Format1 ^1$ |
|||
matchre Format2 ^2$ |
|||
matchre Format3 ^3$ |
|||
matchre Format4 ^4$ |
|||
matchre Format5 ^5$ |
|||
matchre Format6 ^6$ |
|||
matchwait |
|||
Format1: |
|||
put #log >RenownScroll-%file.txt !Rank!!Name!!Race |
|||
action setvariable rank $1;setvariable name $2;setvariable race $3 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur) |
|||
action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ |
|||
send look %1 |
|||
pause 3 |
|||
goto Exit |
|||
Format2: |
|||
put #log >RenownScroll-%file.txt !Rank!!Name!!Race!!Circle |
|||
action setvariable rank $1;setvariable name $2;setvariable race $3;setvariable circle $4 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur)\D+(\d+) |
|||
action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race||%circle;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ |
|||
send look %1 |
|||
pause 3 |
|||
goto Exit |
|||
Format3: |
|||
put #log >RenownScroll-%file.txt !Rank!!Name!!Circle!!Race |
|||
action setvariable rank $1;setvariable name $2;setvariable circle $3;setvariable race $4 when (\d+)\s+(\S+)\D+(\d+)\s+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur) |
|||
action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%circle||%race;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ |
|||
send look %1 |
|||
pause 3 |
|||
goto Exit |
|||
Format4: |
|||
put #log >RenownScroll-%file.txt !Rank!!Name!!Circle!!Race!!Guild |
|||
action setvariable rank $1;setvariable name $2;setvariable circle $3;setvariable race $4 when (\d+)\s+(\S+)\D+(\d+)\s+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur) |
|||
action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%circle||%race||%guild;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ |
|||
send look %1 |
|||
pause 3 |
|||
goto Exit |
|||
Format5: |
|||
put #log >RenownScroll-%file.txt !Rank!!Name!!Race!!Deity |
|||
action setvariable rank $1;setvariable name $2;setvariable race $3;setvariable deity $4 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur)\s+(\S+) |
|||
action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race||%deity;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ |
|||
send look %1 |
|||
pause 3 |
|||
goto Exit |
|||
Format6: |
|||
put #log >RenownScroll-%file.txt !Rank!!Name!!Race!!Deity!!Circle |
|||
action setvariable rank $1;setvariable name $2;setvariable race $3;setvariable deity $4;setvariable circle $5 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur)\s+(\S+)\D+(\d+) |
|||
action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race||%deity||%circle;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ |
|||
send look %1 |
|||
pause 3 |
|||
goto Exit |
|||
Exit: |
|||
put #log >RenownScroll-%file.txt |} |
|||
put #log >RenownScroll-%file.txt |
|||
exit</pre> |
Revision as of 13:49, 28 April 2013
Elanthipedia Renown Scrolls (script) | |
---|---|
Category | information |
Front-end | Genie |
Author | Isharon |
This script creates Elanthipedia forms for renown scrolls. The results are logged to the RenownScroll-Guild.txt file in Genie's Logs folder.
This script is intended for experienced Elanthipedia contributors only. The forms that are created by this script require some manual editing. (See below for details.) Please check for errors before posting them to Elanthipedia.
Instructions
Syntax
.RENOWN [SCROLL NOUN] (YES): Type yes if you want the script to create a room description. Otherwise, just type the scroll noun. For example, if you would read the scroll by typing LOOK SCROLL, run the script by typing .RENOWN SCROLL.
A menu will prompt you to select the guild that is listed on the renown scroll:
- Barbarian
- Bard
- Cleric
- Empath
- Moon Mage
- Necromancer
- Paladin
- Ranger
- Thief
- Trader
- Warrior Mage
A second menu will prompt you to select the format of the renown scroll:
- Rank/Name/Race
- Rank/Name/Race/Circle
- Rank/Name/Circle/Race
- Rank/Name/Circle/Race/Guild
- Rank/Name/Race/Deity
- Rank/Name/Race/Deity/Circle
Sample Usage (Walkthrough)
Running the Script
You want to update the Empath renown scroll, so you go to that room. The scroll looks like this:
______________________________________________________________________ / /_\ | o | | | | Let it be known, the following have displayed excellence | | in empathic acumen. | | | | # Name Race | | ------------------------------------------------------------------ | | 1 Quazzarz Starz'yarz Dwarf | | 2 Frediwyn Dwarf | | 3 Sophrona Sicknomore Elf | | 4 Asrea Mela Human | | 5 Kalyndara Kendryn Prydaen | | 6 Hanafae Leadhorin Elf | | 7 Kathlen Montreve Elothean | | 8 Marmic McIves Elothean | | 9 Katjia Oirwen Elothean | | 10 Fernwren Dwarf | | 11 Rozze McIves Prydaen | | 12 Purehand Woundedlife Human | | 13 Yasminna Kel'Dorack Rakash | | 14 Nausikaa Edgestrider Elf | | 15 Rollannd Ahwannaleia Elothean | | 16 Sonjaa Honeydew Human | | 17 Sarkranis S'Kra Mur | | 18 Sophieann Love Human | | 19 Fizzickle Slowmend Dwarf | | 20 Asperity Rakash | | 21 Meadbh Dragon'claws Elothean | | 22 Karthor Ashanfel Dwarf | | 23 Acerbity Rakash | | 24 Elezra Elothean | | 25 Kynani Prydaen | | | | To REMOVE your name from this list, RUB the scroll. | | To ADD your name, or update your name, TAP the scroll. | _|__________________________________________________________________ | / /_\ | | | | \__________________________________________________________________\__/
Type .RENOWN SCROLL to run the script. Select 4 for Empath from the guild menu. Select 1 for Rank/Name/Race from the format menu.
Editing the Form
After the script runs, your log folder should contain a file called RenownScroll-Empath.txt. It should look like this:
The Crossing: room 325 '''Last updated:''' (4/18/2013)<br /> <br /> {|class="wikitable sortable" |- !Rank!!Name!!Race |-|1||[[Quazzarz]]||Dwarf |-|2||[[Frediwyn]]||Dwarf |-|3||[[Sophrona]]||Elf |-|4||[[Asrea]]||Human |-|5||[[Kalyndara]]||Prydaen |-|6||[[Hanafae]]||Elf |-|7||[[Kathlen]]||Elothean |-|8||[[Marmic]]||Elothean |-|9||[[Katjia]]||Elothean |-|10||[[Fernwren]]||Dwarf |-|11||[[Rozze]]||Prydaen |-|12||[[Purehand]]||Human |-|13||[[Yasminna]]||Rakash |-|14||[[Nausikaa]]||Elf |-|15||[[Rollannd]]||Elothean |-|16||[[Sonjaa]]||Human |-|17||[[Sarkranis]]||S'Kra Mur |-|18||[[Sophieann]]||Human |-|19||[[Fizzickle]]||Dwarf |-|20||[[Asperity]]||Rakash |-|21||[[Meadbh]]||Elothean |-|22||[[Karthor]]||Dwarf |-|23||[[Acerbity]]||Rakash |-|24||[[Elezra]]||Elothean |-|25||[[Kynani]]||Prydaen |}
If you are editing a preexisting scroll (on Elanthipedia), you will only need to edit the date and the table itself.
The map and room name information are not intended for Elanthipedia' it's just for your records, so don't copy those.
The |-| in the list needs to be broken up into table format. Use Word's find and replace feature to replace |-| with |-^l|
The resulting list should look like this:
{|class="wikitable sortable" |- !Rank!!Name!!Race |- |1||[[Quazzarz]]||Dwarf |- |2||[[Frediwyn]]||Dwarf |- |3||[[Sophrona]]||Elf |- |4||[[Asrea]]||Human |- |5||[[Kalyndara]]||Prydaen |- |6||[[Hanafae]]||Elf |- |7||[[Kathlen]]||Elothean |- |8||[[Marmic]]||Elothean |- |9||[[Katjia]]||Elothean |- |10||[[Fernwren]]||Dwarf |- |11||[[Rozze]]||Prydaen |- |12||[[Purehand]]||Human |- |13||[[Yasminna]]||Rakash |- |14||[[Nausikaa]]||Elf |- |15||[[Rollannd]]||Elothean |- |16||[[Sonjaa]]||Human |- |17||[[Sarkranis]]||S'Kra Mur |- |18||[[Sophieann]]||Human |- |19||[[Fizzickle]]||Dwarf |- |20||[[Asperity]]||Rakash |- |21||[[Meadbh]]||Elothean |- |22||[[Karthor]]||Dwarf |- |23||[[Acerbity]]||Rakash |- |24||[[Elezra]]||Elothean |- |25||[[Kynani]]||Prydaen |}
Simply copy and paste this into the appropriate place in the Elanthipedia article.
Script
Start: echo echo Guild: echo echo 1. Barbarian 7. Paladin echo 2. Bard 8. Ranger echo 3. Cleric 9. Thief echo 4. Empath 10. Trader echo 5. Moon Mage 11. Warrior Mage echo 6. Necromancer echo echo Enter Guild Number: matchre Barbarian ^1$ matchre Bard ^2$ matchre Cleric ^3$ matchre Empath ^4$ matchre MoonMage ^5$ matchre Necromancer ^6$ matchre Paladin ^7$ matchre Ranger ^8$ matchre Thief ^9$ matchre Trader ^10$ matchre WarriorMage ^11$ matchwait Barbarian: var guild Barbarian var file Barbarian goto RoomDescCheck Bard: var guild Bard var file Bard goto RoomDescCheck Cleric: var guild Cleric var file Cleric goto RoomDescCheck Empath: var guild Empath var file Empath goto RoomDescCheck MoonMage: var guild Moon Mage var file MoonMage goto RoomDescCheck Necromancer: var guild Necromancer var file Necromancer goto RoomDescCheck Paladin: var guild Paladin var file Paladin goto RoomDescCheck Ranger: var guild Ranger var file Ranger goto RoomDescCheck Thief: var guild Thief var file Thief goto RoomDescCheck Trader: var guild Trader var file Trader goto RoomDescCheck WarriorMage: var guild Warrior Mage var file WarriorMage goto RoomDescCheck RoomDescCheck: if_2 goto RoomDesc goto Format RoomDesc: put #log >RenownScroll-%file.txt {{ShopDescription put #log >RenownScroll-%file.txt |roomname=$roomname put #log >RenownScroll-%file.txt |desc=$roomdesc<br /> put #log >RenownScroll-%file.txt $roomobjs<br /> put #log >RenownScroll-%file.txt $roomexits put #log >RenownScroll-%file.txt }} Format: put #log >RenownScroll-%file.txt $zonename: room $roomid put #log >RenownScroll-%file.txt '''Last updated:''' ($date)<br /> put #log >RenownScroll-%file.txt <br /> put #log >RenownScroll-%file.txt {|class="wikitable sortable" put #log >RenownScroll-%file.txt |- echo echo List Format: echo echo 1. Rank/Name/Race echo 2. Rank/Name/Race/Circle echo 3. Rank/Name/Circle/Race echo 4. Rank/Name/Circle/Race/Guild echo 5. Rank/Name/Race/Deity echo 6. Rank/Name/Race/Deity/Circle echo echo Enter Format Number: matchre Format1 ^1$ matchre Format2 ^2$ matchre Format3 ^3$ matchre Format4 ^4$ matchre Format5 ^5$ matchre Format6 ^6$ matchwait Format1: put #log >RenownScroll-%file.txt !Rank!!Name!!Race action setvariable rank $1;setvariable name $2;setvariable race $3 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur) action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ send look %1 pause 3 goto Exit Format2: put #log >RenownScroll-%file.txt !Rank!!Name!!Race!!Circle action setvariable rank $1;setvariable name $2;setvariable race $3;setvariable circle $4 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur)\D+(\d+) action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race||%circle;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ send look %1 pause 3 goto Exit Format3: put #log >RenownScroll-%file.txt !Rank!!Name!!Circle!!Race action setvariable rank $1;setvariable name $2;setvariable circle $3;setvariable race $4 when (\d+)\s+(\S+)\D+(\d+)\s+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur) action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%circle||%race;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ send look %1 pause 3 goto Exit Format4: put #log >RenownScroll-%file.txt !Rank!!Name!!Circle!!Race!!Guild action setvariable rank $1;setvariable name $2;setvariable circle $3;setvariable race $4 when (\d+)\s+(\S+)\D+(\d+)\s+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur) action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%circle||%race||%guild;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ send look %1 pause 3 goto Exit Format5: put #log >RenownScroll-%file.txt !Rank!!Name!!Race!!Deity action setvariable rank $1;setvariable name $2;setvariable race $3;setvariable deity $4 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur)\s+(\S+) action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race||%deity;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ send look %1 pause 3 goto Exit Format6: put #log >RenownScroll-%file.txt !Rank!!Name!!Race!!Deity!!Circle action setvariable rank $1;setvariable name $2;setvariable race $3;setvariable deity $4;setvariable circle $5 when (\d+)\s+(\S+).+(Dwarf|Elf|Elothean|Gnome|Gor'Tog|Halfling|Human|Kaldar|Prydaen|Rakash|S'Kra Mur)\s+(\S+)\D+(\d+) action put #log >RenownScroll-%file.txt |-|%rank||[[%name]]||%race||%deity||%circle;put #log >Guildlist-$charactername.txt [$date $time] %name %guild %race R Y when ^(\s+)?(\|)?(\s+)?\d+ send look %1 pause 3 goto Exit Exit: put #log >RenownScroll-%file.txt |} put #log >RenownScroll-%file.txt exit