Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
True Brujah
Newbie


Joined: 19 Nov 2004
Posts: 2
Location: ATL

PostPosted: Fri Nov 19, 2004 6:34 am   

could use a little trigger how-to :)
 
So I am a harry potter freak. And ive been playing my MUD quite long enough to grow bored with its outputs and play with #show, and ive an idea. I recieve lines from my mud when i memorize spells in my books like such

Code:
You study Defense Against the Dark Arts for a few long moments, committing 'cure blindness' to memory.
You have successfully memorized the spell 'cure blindness'.


I want to rename them with harry potter spells but it seems to me the best way to do this would be with a string list variable. unfortionatly i dont have any idea how to use them :( for example. I would like something more along these lines.

Code:
#TR {^You study %1 for a few long moments, committing '%2' to memory.} {#show %color(gray)Silently cursing all the weed you smoke you swish your wand trying to remaster "%color(bold)%color(white)@HPspell%colors(gray)"}
#TR {^You have successfully memorized the spell '%1'.} {#SH %color(gray)......A familiar smoky aura descends as you celebrate your mastery of "%color(yellow)@HPspell%color(gray)"......}


I've come to that conclusion because there are a lot of spells that are possible. Here is a list of the spell from the MUD and the name from HP.
Code:

Armor                      - Impervious!
Blindness                  - Finite Incantatem!
Circle of Fire             - Aparecium!
Counterspell               - Nox!
Curse                      - Inpedimenta!
Detect Invisibility        - Prior Incantato!
Dispel Area                - Orchideous!
Dispel Magic               - Imperio!
Enhanced Strength          - Engorgio!
Fireball                   - Incendio!
Flame Wind                 - Granvintontione!
Frost                      - Reducio!
Gate Travel                - Spingrosa!
Hands of Wind              - Dissendium!
Haste                      - Enervate!
Ice Storm                  - Tarantallegra!
Ice Wind                   - Alam Ventra!
Iceball                    - Gantigringi!
Identify                   - Serpensortia!
Kill                       - Avanda Kedavara!
Levitation                 - Wingardium Leviosa!
Lightning Bolt             - Sonorus!
Magic Bomb                 - Diffindo!
Magic Dart                 - Holnum!
Magic Lock                 - Halknom!
Magic Unlock               - Halmnog!
Momentary Darkness         - Locomotor Mortis!
Nexus                      - Obliviate!
Pass Door                  - Venstrunt!
Plague                     - Quietus!
Poison                     - Furnunculus!
Change Sex                 - Riddikulus!
Room Shield                - Mobiliarbus!
Shield                     - Kilk!
Silence                    - Crucio!
Slow                       - Petrificus Totalus!
Stone Skin                 - Expelliarmus!
Thunderclap                - Aventry!
Thunderstorm               - Breantwoon!
Weaken                     - Deletrius!
Web                        - Stupefy!
Circle of Thorns           - Sensatre!
Concealment                - Fipel!
Create Spring              - Luilne Gond!
Faerie Fire                - Lumos!
Summon mount               - Quin Varsnuk!
Bless                      - Waddiwasi!
Call Lightning             - Abcintia!
Calm                       - Mobilicorpus!
Cause Critical             - Avis!
Cause Serious              - Mesacentro!
Cause Light                - Alenn Ventra!
Cure Blindness             - Rictusempra!
Cure Critical              - Peskipiksi Pesternomi!
Cure Light                 - Ferula!
Cure Disease               - Expecto Patronum!
Cure Poison                - Densaugeo!
Elemental Shield           - Silanteo!
Detect Invisibility        - Hallin Hamoras!
Fountain                   - Shunka!
Harm                       - Plentita Taz!
Heal                       - Reducto!
Protection From Evil       - Vintrafti!
Protection From Good       - Vantrinto!
Reanimate                  - Relanna!
Refresh                    - Hwrung!
Remove Curse               - Relashio!
Resurrect                  - Reparo!
Sanctuary                  - Markin Ratimma!
Summon                     - Accio!
Augment Aura               - Diwante!
Word Of Recall             - Alohomora!
*******This list is not inclusive, merely the spells most people care about memorizing*******


I think im misusing the color command too.. :( Thanks in advance for any help.
_________________
I'm dumb. At least I admit it.
..........................then
.............................there was
......................................Brujah............
Reply with quote
a5hi5m
Beginner


Joined: 04 Mar 2004
Posts: 24
Location: Australia

PostPosted: Fri Nov 19, 2004 12:50 pm   
 
dunno if this is what you had in mind, and there is probably a lot easier/neater way to do this, but you could do the following

#class HPSpells
#tr {^You study * for a few long moments, committing (*) to memory.} {#sub {Silently cursing all the weed you smoke you swish your wand trying to remaster %ansi(white,bold)%1}}
#tr {^You have successfully memorized the spell (*).} {#sub {%ansi(8)......A familiar smoky aura descends as you celebrate your mastery of %ansi(14)%1 %ansi(8).... }}
#tr {'cure blindness'} {#sub { 'Rictusempra!'}}
#tr {'Armor'} {#sub { 'Impervious!'}}
#tr {'Blindness'} {#sub { 'Finite Incantatem!'}}
#tr {'Circle of Fire'} {#sub { 'Aparecium!'}}
#tr {'Counterspell'} {#sub { 'Nox!'} }
#tr {'Curse'} {#sub { 'Inpedimenta!'} }
#tr {'Detect Invisibility'} {#sub { 'Prior Incantato!'} }
#tr {'Dispel Area'} {#sub { 'Orchideous!'} }
#tr {'Dispel Magic'} {#sub { 'Imperio!'} }
#tr {'Enhanced Strength'} {#sub { 'Engorgio!'} }
#tr {'Fireball'} {#sub { 'Incendio!'} }
#tr {'Flame Wind'} {#sub { 'Granvintontione!'} }
#tr {'Frost'} {#sub { 'Reducio!'} }
#tr {'Gate Travel'} {#sub { 'Spingrosa!'} }
#tr {'Hands of Wind'} {#sub { 'Dissendium!'} }
#tr {'Haste'} {#sub { 'Enervate!'} }
#tr {'Ice Storm'} {#sub { 'Tarantallegra!'} }
#tr {'Ice Wind'} {#sub { 'Alam Ventra!'} }
#tr {'Iceball'} {#sub { ' Gantigringi!'} }
#tr {'Identify'} {#sub { 'Serpensortia!'} }
#tr {'Kill'} {#sub { 'Avanda Kedavara!'} }
#tr {'Levitation'} {#sub { 'Wingardium Leviosa!'}}
#tr {'Lightning Bolt'} {#sub { 'Sonorus!'} }



#class 0



keep adding in the rest of the spell names/what you want to see displayed
Reply with quote
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Fri Nov 19, 2004 6:48 pm   
 
You could use a data record which will do away with multiple triggers


Create a datarecord

e.g

@PotterSpellConversion


Armor=Impervious|Blindness=Finite Incantatem

etc

Then your triggers would look like this

BTW don't use the %1.%2 etc within the trigger matching pattern. You reference these by using Paranthesis. See below

#TR {^You study * for a few long moments, committing ~'(*)~' to memory.} {#SUB {%ansi(high,gray)Silently cursing all the weed you smoke you swish your wand trying to remaster %ansi( bold, white)%1}}

#TR {^You have successfully memorized the spell ~'(*)~'.} {#SUB {%ansi(high,gray)......A familiar smoky aura descends as you celebrate your mastery of %ansi(high,yellow)%db(@PotterSpellConversion,%1)!%ansi(high,gray).....}}
Reply with quote
True Brujah
Newbie


Joined: 19 Nov 2004
Posts: 2
Location: ATL

PostPosted: Thu Nov 25, 2004 7:43 am   
 
unfortionatly neither of those helped me. the second one lost me completly and the first was not what i wanted. i still need to be able to see the regular names when they come up in anything other than memorizing unfortionatly. but i have found another snag.

when using #show how do i get it to gag the original line? i tried using gag but that keeps the trigger from firing :( thanks for all the help.
_________________
I'm dumb. At least I admit it.
..........................then
.............................there was
......................................Brujah............
Reply with quote
Diablo108
Newbie


Joined: 27 Nov 2004
Posts: 3
Location: Texas

PostPosted: Sat Nov 27, 2004 10:20 pm   
 
Alohomora is the Open Lock spell, retard.... *mumbles* Even I, am not a Harry Potter freak (OK, maybe just a little), knows that. :P I really have no clue. I don't know anything about scripts or anything. That's my 2 cents.

-Dia Cool
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Mon Nov 29, 2004 6:24 pm   
 
This is the command you're looking for: #Psub. And this is a finished script for you:

Code:

#trigger {You study (*) for a few long moments, committing '(*)' to memory.} {#PSUB "%db(@spelllist,%2)" %x2}
#trigger {You have successfully memorized the spell '(*)'.} {#PSUB "%db(@spelllist,%1)" %x1}
#addkey SpellList {Armor=Impervious}
#addkey SpellList {Blindness=Finite Incantatem}
#addkey SpellList {Circle of Fire=Aparecium}
#addkey SpellList {Counterspell=Nox}
#addkey SpellList {Curse=Inpedimenta}
#addkey SpellList {Detect Invisibility=Prior Incantato}
#addkey SpellList {Dispel Area=Orchideous}
#addkey SpellList {Dispel Magic=Imperio}
#addkey SpellList {Enhanced Strength=Engorgio}
#addkey SpellList {FireballIncendio}
#addkey SpellList {Flame Wind=Granvintontione}
#addkey SpellList {Frost=Reducio}
#addkey SpellList {Gate Travel=Spingrosa}
#addkey SpellList {Hands of Wind=Dissendium}
#addkey SpellList {Haste=Enervate}
#addkey SpellList {IceStorm=Tarantallegra}
#addkey SpellList {IceWind=Alam Ventra}
#addkey SpellList {Iceball=Gantigringi}
#addkey SpellList {Identify=Serpensortia}
#addkey SpellList {Kill=Avanda Kedavara}
#addkey SpellList {Levitation=Wingardium Leviosa}
#addkey SpellList {Lightning Bolt=Sonorus}
#addkey SpellList {Magic Bomb=Diffindo}
#addkey SpellList {Magic Dart=Holnum}
#addkey SpellList {Magic Lock=Halknom}
#addkey SpellList {Magic Unlock=Halmnog}
#addkey SpellList {Momentary Darkness=Locomotor Mortis}
#addkey SpellList {Nexus=Obliviate}
#addkey SpellList {Pass Door=Venstrunt}
#addkey SpellList {Plague=Quietus}
#addkey SpellList {Poison=Furnunculus}
#addkey SpellList {Change Sex=Riddikulus}
#addkey SpellList {Room Shield=Mobiliarbus}
#addkey SpellList {Shield=Kilk}
#addkey SpellList {Silence=Crucio}
#addkey SpellList {Slow=Petrificus Totalus}
#addkey SpellList {Stone Skin=Expelliarmus}
#addkey SpellList {Thunderclap=Aventry}
#addkey SpellList {Thunderstorm=Breantwoon}
#addkey SpellList {Weaken=Deletrius}
#addkey SpellList {Web=Stupefy}
#addkey SpellList {Circle of Thorns=Sensatre}
#addkey SpellList {Concealment=Fipel}
#addkey SpellList {Create Spring=Luilne Gond}
#addkey SpellList {Faerie Fire=Lumos}
#addkey SpellList {Summon mount=QuinVarsnuk}
#addkey SpellList {Bless=Waddiwasi}
#addkey SpellList {Call Lightning=Abcintia}
#addkey SpellList {Calm=Mobilicorpus}
#addkey SpellList {Cause Critical=Avis}
#addkey SpellList {Cause Serious=Mesacentro}
#addkey SpellList {Cause Light=Alenn Ventra}
#addkey SpellList {Cure Blindness=Rictusempra}
#addkey SpellList {Cure Critical=Peskipiksi Pesternomi}
#addkey SpellList {Cure Light=Ferula}
#addkey SpellList {Cure Disease=Expecto Patronum}
#addkey SpellList {Cure Poison=Densaugeo}
#addkey SpellList {Elemental Shield=Silanteo}
#addkey SpellList {Detect Invisibility=HallinHamoras
#addkey SpellList {Fountain=Shunka}
#addkey SpellList {Harm=Plentita Taz}
#addkey SpellList {Heal=Reducto}
#addkey SpellList {Protection From Evil=Vintrafti}
#addkey SpellList {Protection From Good=Vantrinto}
#addkey SpellList {Reanimate=Relanna}
#addkey SpellList {Refresh=Hwrung}
#addkey SpellList {Remove Curse=Relashio}
#addkey SpellList {Resurrect=Reparo}
#addkey SpellList {Sanctuary=Markin Ratimma}
#addkey SpellList {Summon=Accio}
#addkey SpellList {Augment Aura=Diwante}
#addkey SpellList {Word Of Recall=Alohomora}
Reply with quote
AngelusErrara
Newbie


Joined: 24 Feb 2010
Posts: 5

PostPosted: Wed May 05, 2010 12:23 pm   Rehashing the past
 
Wow, what a random thing to find, i never even got this to work and its a great idea. sorry for the exceptionally long absence i cant even remember what my password was on TrueBrujah, this is the same user however. This is what ive gotten so far but its still not quite there yet. im recieve this string when i memorize spells and its not correctly retrieving the variable from the list.

I would greatly appreciate if someone could point me in the direction of what im doing wrong... :)

Quote:

#TR {^You study * for a few long moments, committing ~'(*)~' to memory.} {#SUB {%ansi(high,gray)Silently cursing all the weed you smoke you swish your wand trying to remaster %ansi( bold, white)%1}}

#TR {You have successfully memorized the spell '(*)'.} {#SUB {You have successfully memorized the spell ~'(*)~'.} {%ansi( high, gray)......A familiar smoky aura descends as you celebrate your mastery of %ansi( high, yellow)%db( @spelllist, %1)!%ansi( high, gray).....}}

#addkey SpellList {Armor=Impervious}
#addkey SpellList {Blindness=Finite Incantatem}
#addkey SpellList {Circle of Fire=Aparecium}
#addkey SpellList {Counterspell=Nox}
#addkey SpellList {Curse=Inpedimenta}
#addkey SpellList {Detect Invisibility=Prior Incantato}
#addkey SpellList {Dispel Area=Orchideous}
#addkey SpellList {Dispel Magic=Imperio}
#addkey SpellList {Enhanced Strength=Engorgio}
#addkey SpellList {Fireball=Incendio}
#addkey SpellList {Flame Wind=Granvintontione}
#addkey SpellList {Frost=Reducio}
#addkey SpellList {Gate Travel=Spingrosa}
#addkey SpellList {Hands of Wind=Dissendium}
#addkey SpellList {Haste=Enervate}
#addkey SpellList {IceStorm=Tarantallegra}
#addkey SpellList {IceWind=Alam Ventra}
#addkey SpellList {Iceball=Gantigringi}
#addkey SpellList {Identify=Serpensortia}
#addkey SpellList {Kill=Avanda Kedavara}
#addkey SpellList {Levitation=Wingardium Leviosa}
#addkey SpellList {Lightning Bolt=Sonorus}
#addkey SpellList {Magic Bomb=Diffindo}
#addkey SpellList {Magic Dart=Holnum}
#addkey SpellList {Magic Lock=Halknom}
#addkey SpellList {Magic Unlock=Halmnog}
#addkey SpellList {Momentary Darkness=Locomotor Mortis}
#addkey SpellList {Nexus=Obliviate}
#addkey SpellList {Pass Door=Venstrunt}
#addkey SpellList {Plague=Quietus}
#addkey SpellList {Poison=Furnunculus}
#addkey SpellList {Change Sex=Riddikulus}
#addkey SpellList {Room Shield=Mobiliarbus}
#addkey SpellList {Shield=Kilk}
#addkey SpellList {Silence=Crucio}
#addkey SpellList {Slow=Petrificus Totalus}
#addkey SpellList {Stone Skin=Expelliarmus}
#addkey SpellList {Thunderclap=Aventry}
#addkey SpellList {Thunderstorm=Breantwoon}
#addkey SpellList {Weaken=Deletrius}
#addkey SpellList {Web=Stupefy}
#addkey SpellList {Circle of Thorns=Sensatre}
#addkey SpellList {Concealment=Fipel}
#addkey SpellList {Create Spring=Luilne Gond}
#addkey SpellList {Faerie Fire=Lumos}
#addkey SpellList {Summon mount=QuinVarsnuk}
#addkey SpellList {Bless=Waddiwasi}
#addkey SpellList {Call Lightning=Abcintia}
#addkey SpellList {Calm=Mobilicorpus}
#addkey SpellList {Cause Critical=Avis}
#addkey SpellList {Cause Serious=Mesacentro}
#addkey SpellList {Cause Light=Alenn Ventra}
#addkey SpellList {Cure Blindness=Rictusempra}
#addkey SpellList {Cure Critical=Peskipiksi Pesternomi}
#addkey SpellList {Cure Light=Ferula}
#addkey SpellList {Cure Disease=Expecto Patronum}
#addkey SpellList {Cure Poison=Densaugeo}
#addkey SpellList {Elemental Shield=Silanteo}
#addkey SpellList {Detect Invisibility=HallinHamoras
#addkey SpellList {Fountain=Shunka}
#addkey SpellList {Harm=Plentita Taz}
#addkey SpellList {Heal=Reducto}
#addkey SpellList {Protection From Evil=Vintrafti}
#addkey SpellList {Protection From Good=Vantrinto}
#addkey SpellList {Reanimate=Relanna}
#addkey SpellList {Refresh=Hwrung}
#addkey SpellList {Remove Curse=Relashio}
#addkey SpellList {Resurrect=Reparo}
#addkey SpellList {Sanctuary=Markin Ratimma}
#addkey SpellList {Summon=Accio}
#addkey SpellList {Augment Aura=Diwante}
#addkey SpellList {Word Of Recall=Alohomora}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net