FMud Scripting Tutorial - Aliases and Targetting

I thought I’d try recording some screencast videos to demonstrate how to use the scripting functions of the client. This first video covers creating aliases and using a variable for targetting. I’m not sure about the sound quality so I think I’ll try and improve that for the next one! Any feedback or suggestions for future video topics would be appreciated.


 
 
 

16 Responses to “FMud Scripting Tutorial - Aliases and Targetting”

  1. chris
    7th March 2009 at 02:50

    what client are they using in the vidio? Is it called Fmud?

  2. Dustin
    17th June 2009 at 02:57

    I found this video pretty well done. Although quite basic it provides a good starting point for those who wish to begin creating aliases. Perhaps an advanced alias, trigger, and macro series could come out showing some of the trickier programming syntaxes such as ‘if’ conditions and setting delays in execution.

  3. Wade
    23rd June 2009 at 08:36

    Make more of these, mate. Good stuff!

  4. justin
    23rd August 2009 at 06:16

    great video. i did exactly what you did. now if only i was using fmud instead of flash :( can you made a video or point me to a video of targeting in flash?

  5. matt
    23rd August 2009 at 22:47

    @justin Sorry I don’t know what you mean. The technology used is called Flash. The program in the video is the Iron Realms flash client which is based upon a program called FMud.

  6. Rike
    9th September 2009 at 22:50

    I’m trying to make the targeting system like you have here. I can target the creature just fine, but when I got to SMITE it, using the alias S and the pattern send(’smite’ + target) it’s not recognizing it. Any ideas?

  7. Rike
    9th September 2009 at 22:53

    Aha, I figured it out, I wasn’t putting a space between smite and the ‘ symbol.

  8. Jonathan
    3rd January 2010 at 06:12

    Hi, I’m using your client on the Achaea MUD. I set up a simple three line code that worked when I first set it up, then later, it doesn’t work.

    Alias: cfa *

    execute:
    echo(this[1]);
    send(”cast firelash at “+this[1]);
    send(”st kill “+this[1]);

    The first time I ran it, this[1] became the proper target. Then later, I found that this[1] was null, and this[0] was cfa.

    I’m sure I didn’t switch anything–all that happened was I quit and came back later. Any idea what is going on–if there is any work-around?

    Oh, and I also noticed that the system doesn’t store backslashes between runs. This actually happens in your demonstration video when you quietly type them in after they disappeared.

  9. matt
    3rd January 2010 at 11:08

    @jonathan I just did a quick test and your alias was working fine for me. Not sure what to suggest really. The backslashes not saving is down to the IRE server side code and nothing to do with the client.

  10. Jonathan
    3rd January 2010 at 17:57

    Matt,
    Thanks for your prompt reply. I tried a couple of things to work around this problem.

    First, I upgraded from Flash 10,0,22,87 to Flash 10,0,42,34. This did NOT seem to have the desired effect. The problem continued.

    Next, I tried copying the code, deleting the alias, and re-creating the alias from scratch (pasting in the old code.) THIS WORKED! However, it looks like I will have to do this copying and pasting every time I log in to the game.

    I’m curious if you log off and log back on again, and try the alias again, does it still work? If not, maybe it is another issue on the IRE server side? Are they storing unseen character strings? Or are there two separate compilers depending on whether it compiles the code when you log in, or if it compiles the code when you type it into the alias box?

    My sense is that if I edit an old alias, I can’t get the this[1] keyword to work, but if I create a new alias, the this[1] keyword works just fine. (I’m not 100% sure about this, though)

    I like using your client, and I hope that this is helpful to you–I guess if you’re not having these issues there’s not much you can do. But I still appreciate your prompt reply.

    Thanks,
    Jonathan

  11. matt
    3rd January 2010 at 19:01

    I’ve just logged in and tried again and it works for me. I’ve also deleted and recreated the alias, edited it, logged in and out several times etc, and it is working as expected each time for me.

    A couple of things you can try:

    1. Clear your browser cache to make sure you have the most up to date version of the client.
    2. Strip the alias down to the bare minimum so it just sends echo(this[1]) for example and try recreating the problem.

  12. Jonathan
    4th January 2010 at 03:33

    I’ve tried everything I can think of. I’ve changed browsers, updated Java version, and flash version,
    I did my best to clear out the browser cache. Finally, I ran CCleaner to clear out everything.

    Same story in Internet Explorer and in Firefox. I’ve loaded the FMudClient from scratch several times now.

    If you’re using a different browser, I could try that one. But I’m getting somewhat consistent results.

    When I create a new alias, and use an asterisk for pattern matching, it works as expected. But if I export and import, it doesn’t work. If I go back in and edit the Alias *Pattern* box, (even if I type in exactly the same thing) it doesn’t work, and if I quit out, and log back in, it doesn’t work.

    Maybe, even if you can’t duplicate the problem, you could still see if there is any difference in the subroutines for reading in a new alias (which seems to work well) vs. {modifying an old alias, importing an alias, loading an alias}. Just to see if it is exactly the same subroutine or not.

    Thanks,
    Jonathan

  13. Jonathan
    5th January 2010 at 03:31

    Just a sidenote–I’m also having almost the opposite issue with the triggers. They do NOT generally work when I create them from scratch. However, there’s an easy work-around for this. I just create several blank triggers, log out, then log back in. When I edit the old triggers, they work okay. (None of my triggers use the “this” keyword, though.) I’m surprised nobody else has run into any of these issues I’m having.

  14. Basyiel
    25th January 2010 at 15:33

    I’m having the same problems, just haven’t posted, been reading to see how you guys are trying to fix em :-)

  15. matt
    25th January 2010 at 17:18

    Unfortunately I can’t reproduce the problem so it’s not really possible for me to fix it. If you like you (Jonathan or Basyiel) can email me (mattATbc-devDOTnet) with exactly the steps you are taking to reproduce the problem and I will take a look at it.

  16. Jen
    14th June 2010 at 18:45

    I can’t get the echo to work. Could you type the exact code out for me please?

Leave a Reply