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
terl
Beginner


Joined: 13 Aug 2003
Posts: 10

PostPosted: Thu Aug 14, 2003 12:19 am   

trigger in alias
 
hi i'm new here :P
I'd need some help with a trigger( or sumthing else that works) inside an alias.
Basically i've done the following:
alias: psalmii
cast 'psalm of healing'
#ec Casting Psalm of Healing Cost: 500 SPs
#tr {You begin to sing, infusing your song with magic.}
#va song_psalm %ctime
#va s_psalm "ON"
#wait 60000
p' Psalm about to drop


it does everything very nicely.. times the length of spell, echoes what it's suppossed to, BUT that #tr line just doesnt fire :(
when the @s_spalm is set to ON, i can see it as ON in another alias (esongs) anyways, when i fail the spell, it still fires as ON, i tried with #tr, #if, #cond. Help much appreciated on this.

another thing i don't seem to be able to work out is the following:
i have an alias called 'visu' it does cast visualize act at (skill or spell)
when i try to do that with %1 it only takes the 1st of a possible infinite amount of words.. i.e. visu tonal control, would return as "cast visualize act at tonal" and then make a new class called "control" :P
I would also like to know if there is anyway of doing the same with the visualize act as i did with the psalm of healing above, the only catch is that i can only have one psalm at a time but multiple visus on different spells/skills, if there is a way to define a variable for each visu i do and then trigger it to off when the actual one drops (not just any)
the Off message would be:
Your (skill/spell) visu spell is no longer affecting your songs.

thanks alot for any help
--Terl
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Aug 14, 2003 4:10 am   
 
Triggers are permanent settings. They only need to be made once. There's no reason to put a #TR command inside an alias, where it will be remade every time the alias is used.

Your trigger doesn't do anything. All it has is a pattern.
#tr {You begin to sing, infusing your song with magic.}
I'm going to guess that you wanted all the commands after the pattern to be part of the trigger.

#TR {You begin to sing, infusing your song with magic.} {
#VA song_psalm %ctime
#VA s_psalm "ON"
#ALA +60 {p' Psalm about to drop}}

Copy the whole thing and paste it to the COMMAND LINE.

Oops, I seem to have missed the bottom half of your post.
You don't need to use %1. Aliases automatically append unused parameters. As for setting individual alarms for all your "visu's", I'm sure it's possible, but it would require more information than you've given so far.

#AL visu {cast visualize act at}
Reply with quote
terl
Beginner


Joined: 13 Aug 2003
Posts: 10

PostPosted: Thu Aug 14, 2003 4:14 am   
 
WOW, thanks :)
Reply with quote
terl
Beginner


Joined: 13 Aug 2003
Posts: 10

PostPosted: Fri Aug 15, 2003 12:23 pm   
 
hi again
something didnt work :(
i'll explain the whole situation:
I'm bothereing with all this because i made a neat alias. I'm bard in my mud and i can have up to 5 songs at the same time running, later it'll be more, so i'm trying to keep track of those.
the alias is called esongs and echoes all the songs currently running.
for each song that i cast i made an alias, so i can store the vars in it.
i have 2 variables normally for each song
@song_con, @s_con f.e. for constitution.@s_dex,@song_dex for dexterity etc...
esongs those the following:
#SHOW ~] ------- ACTIVE SONGS --------
#IF (@s_str = "ON") {#SHOW ~] Strength Song: [%ctime - @song_str] sec}
#IF (@s_con = "ON") {#SHOW ~] Constitution Song: [%ctime - @song_con] sec}
#IF (@s_dex = "ON") {#SHOW ~] Dexterity Song: [%ctime - @song_dex] sec}
#IF (@s_int = "ON") {#SHOW ~] Intellect Song: [%ctime - @song_int] sec}
#IF (@s_cha = "ON") {#SHOW ~] Charisma Song: [%ctime - @song_cha] sec}
#SHOW ~] -----------------------------

now with the visualize act spell,.. i'd love to put that in this alias showing me what i visualize and how long its been running
the off message for it is easy i think since it has the name of the skill/spell in it.
so how can i convert the stuff from your earlier message regarding visu's into this?

Thanks :)
--Terl
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 15, 2003 5:15 pm   
 
I misunderstood your first post. I thought you wanted an alias "visu" which would just "cast visualize act at (skill or spell)".
Reply with quote
terl
Beginner


Joined: 13 Aug 2003
Posts: 10

PostPosted: Fri Aug 15, 2003 7:05 pm   
 
nod
i can make aliases :)
i'd like to be able to differentiate variables.. without making newones all the time for the visu.
i was thinking maybe it can be done by using #add visu_count +1 and then do something with that :P
But i'm not quite sure how to do it yet.. was pondering over almost all night ;p

again any help/input greatly appreciated.. i think this is almost last difficult thing for my bard set of triggers :)
is there a # or % command to turn parsing on and off?

thx
Terl
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