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


Joined: 02 Dec 2004
Posts: 27
Location: Kansas... whippie!

PostPosted: Mon Oct 17, 2005 5:53 am   

Zmud trigger help.
 
I'm hoping someone can help me with this, as I'm not toooo savy with triggers. I'm working on a very basic questing script. One problem, I have about 100 triggers for this one script (One for each area/place).

I need to know if I can condense it down to about 4 different triggers using the if/then statements (One for item, one for location, one for retrieval, one for bad quest areas)

I've already got the bad quest areas taken care of (There's not too many, so I used Area|Area|Area etc, already got item and retrieval taken care of, so, this is what I need to do (100 triggers is causing it to lag juuuust a little)

Quote:
^The High Priest of Arkane says 'Look in the general area of Forbidden Forest for A Boulder Strewn Field!'$


WHich then it runs the series of directions (I.E. 20 south, 10 east, get @qitem, recall, go back to quester, pq complete)

Any suggestions ? Will switching to #IF/#THEN statements reduce the amount of lag from that many triggers?
Reply with quote
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Mon Oct 17, 2005 7:35 am   
 
If you can cut down triggers drastically yes...
^(*) says 'Look in the general area of Forbidden Forest for (*)!'$

20 south, 10 east, get %2, recall,
#if (%1 = "The High Priest of Arkane") {go back to quester1}
#if (%2 = "The High Priestess of Divine") {go back to quester2}

pq complete
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Oct 17, 2005 3:51 pm   
 
Use Quotes for it to work correctly....

#if ("%1" = "The High Priest of Arkane") {go back to quester1}
#if ("%2" = "The High Priestess of Divine") {go back to quester2}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
talonfreak2003
Beginner


Joined: 02 Dec 2004
Posts: 27
Location: Kansas... whippie!

PostPosted: Mon Oct 17, 2005 5:29 pm   
 
Ok, so I would use for example....

For the Prompt from the mud, what I used to have as this
^The High Priest of Arkane says 'Look in the general area of Forbidden Forest for A Boulder Strewn Field!'$

I could change to :
^The High Priest of Arkane says '(*)'$
#IF ("%1"="Look in the general area of Forbidden Forest for A Boulder Stren Field") {directions to quest item}
Would that work? Or does the coding require anything else for the long quote ?
_________________
Yes, I'm a programing newb, but I can fix a car faster than you can spin your head.
Reply with quote
talonfreak2003
Beginner


Joined: 02 Dec 2004
Posts: 27
Location: Kansas... whippie!

PostPosted: Mon Oct 17, 2005 5:38 pm   
 
Alright, I switched everything out, it works, MUCH appriciated.
_________________
Yes, I'm a programing newb, but I can fix a car faster than you can spin your head.
Reply with quote
OmegaDeus
Apprentice


Joined: 14 Sep 2005
Posts: 121

PostPosted: Mon Oct 17, 2005 6:20 pm   
 
I actually made something similar, what you do is store everything in paths, first areas, then specific rooms. From the entrance of the area. If you have the areas mapped though, this could be done easier by making it walk you to the specific room as listed on the map.

then trigger:
^The High Priest of Arkane says 'Look in the general area of &q_area for &q_room!'$

#exec {.@q_area}
#walk short room name
_________________


Look at me I've got zSKILLS
Reply with quote
talonfreak2003
Beginner


Joined: 02 Dec 2004
Posts: 27
Location: Kansas... whippie!

PostPosted: Mon Oct 17, 2005 10:09 pm   
 
*nod* With the help, I reduced 100 trigs to 9, runs *MUCH* faster now.
_________________
Yes, I'm a programing newb, but I can fix a car faster than you can spin your head.
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