Welcome to the Builder Academy

Question Parna's really long trigger tips

More
28 Sep 2013 22:37 #4356 by Parnassus
Sometimes, when I'm discussing building techniques with newbies on the TBA training mud, I boast about my zones and show off my triggers. And, sometimes, I get the impression that some of them are thinking, "Well, why should I even try? I'll never be able to build triggers as good as Parna's." Well, maybe a few of them? Oh, come on, there HAVE to be one or two, right? Anyway, this is my answer to that question.

I have decided to call my style of building triggers "Frankentriggering". What I do is, I search through TBAmud triggers, especially the stock ones, to find any that might be useful to me.

I recommend starting with the Forums, building section. Check out all the trigger of the day posts. Make a note of all the discussion points you don't understand yet because hopefully you'll be able to understand them better later.

My next source is tlist <zone#>. 0 and 13 are good places to start. Check out the two words at the end of the line. They'll show you if the trigger is for mobs, rooms or objects and what sort of trigger it is. Read HELP TRIG-TYPES to understand them better. The number in the [] is the trigger number. If any of the trigger names or types look interesting, TSTAT <triggernumber> to see what it looks like.

Next, I love the command VNUM T <keyword>. That will only get me trigger titles but it gives me a jumping off point. I'm wondering what to do with my doors? Use the keyword door. I'm wondering about transform? I use transform for the keyword. Again, TSTAT the trigger number to see if that particular trigger will be useful to you. If you've seen my park triggers, you might recognize the rabbit trigger that keeps popping up. I always forget where to find it so I type "vnum t bunny" which doesn't do me much good because I always think that rabbit is a bunny. Then I switch to rabbit or decap to find that I need to TSTAT 1398 to see it. And if you haven't seen my park triggers, don't worry. I'm hoping to have both the park zone and the tarot card zone in donatable shape soon. Yeah, I've been saying that about the park for about three years but I'm really close now!

I also downloaded a copy of Windows Grep and have it pointed at my home copy of TBAmud. Then I can search for things like %actor.vnum% that won't show up in VNUM T <keyword>. Just don't try searching for %%.

After I find the triggers, I chop them all up (yeah, this is a terrible thing to do to a poor, innocent little trigger that never did me any harm, but it's for its own good! Really! It'll thank me later...). I pull out all the good parts, toss them into an editor and stitch them all together and hope that the stitches hold without being too obvious. Then I cross my fingers, set off the trigger and hope for the best.

Sometimes it works and sometimes it doesn't. Then I start poking all the parts, trying to find where it isn't working. Sometimes I'll reset the type as speech, the numeric as 100 and the argument as testing. This means I can set it off whenever I want without waiting for conditions to be right. Next I try putting in an %echo% at each section, to make sure every section is hitting as it should. If you've /fi'd your trigger (as you should always do!) its much easier to see where your ifs and ends are. I sometimes put all sorts of weird spaces in as I look for errors, knowing that the /fi will get rid of them when I'm ready to save it.

After that, I run around asking for help. That wonderful part of t1284 that made sure that you didn't deal the same card twice in a single deck, well, it just wasn't working after I Frankentriggered the deck. Thanks again for fixing that for me, Thomas! Rumble and Fizban often have to fend off questions about "But WHY isn't this working?" And, yes, sometimes the answers are embarrassing but that's all just part of the learning process.

So, back to that question of "Why should I even try? I'll never be able to trigger like Parna." The answer is well, even Parna can't trigger like Parna. My triggers are a mix of ideas from various ideas of known and unknown builders that came before, polished by people much better than I'll ever be. And, btw, the person that I'll never be able to trigger like? Detta! Have you looked at her triggers? Incredible! But that never stopped me trying.

For a really long list of helpfiles, type HINDEX trig. Many of them are alternate helpfile names but it's still useful.
Recommended:
help trigger
help trigedit-advanced-tutorial
help trig-expressions
help trig-if
The following user(s) said Thank You: thomas

Please Log in or Create an account to join the conversation.

More
29 Sep 2013 00:00 #4358 by rudeboyrave
Learning how to script with DG is surely a learning experience but you will not believe how easy it is to pick up! Did you know that I was the one to suggest a vnum trigger command? BOOYAH! MIND BLOWN. anyways lol, Maybe you could do a few trigger of the day's here on the forum!

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

More
29 Sep 2013 21:16 #4359 by Parnassus
Thanks so much for that vnum trigger command. I love it so much!

There are a few reasons why I probably won't do trigger of the days. Mainly, I feel that they're really good for training and I don't think mine are. The good ones (because I'm not saying this because I don't like my triggers since I really do) scroll screens long and, because they're Frankentriggers, I don't entirely know what they do or why they do it. They don't have an actual style, since they come from different triggers from different builders. I also worry that this makes them inefficient.

Please Log in or Create an account to join the conversation.

More
30 Sep 2013 10:11 #4361 by Ornir
Parna -

Why not post one, maybe as a 'CRITIQUE MY TRIGGER' post? There are lots of really bright folks here who would be happy to take a look at it and provide some tips/pointers/refactoring for you. It would certainly be a good learning process for both you and all the other trigger writes on the board, the majority of which never post! :)

Luminari - a Pathfinder/D&D inspired adventure!
www.luminarimud.com
luminarimud.com 4100

Please Log in or Create an account to join the conversation.

More
30 Sep 2013 13:46 #4362 by Rumble
Please do post, Fizban has corrected numerous trigs of the day that I have posted and it doesn't stop me :-p I could always use the help.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

More
30 Sep 2013 23:01 #4363 by Parnassus
Well, I DID post one a while back and Thomas fixed it for me. Of course, the trigger, as it stands now, is longer and doesn't look very similar to the one posted. I'm sure my triggers could use a lot of critiquing, but I'm not sure I want to inflict the pages and pages of it on anyone. There are some really interesting ones wandering around my zones but they'll be available for download soon anyway. Before I donate the zones, I want to make them available on the play port for people to play around with, in hopes that any bugs can be caught.

But I'll think over the trigger-posting thing and see if any of my triggers look suitable.

Please Log in or Create an account to join the conversation.

Time to create page: 0.223 seconds