Check this in see if I going about it Wrong.

Post Reply
Kugma
Posts: 1
Joined: Wed Nov 17, 2010 4:39 am

Check this in see if I going about it Wrong.

Post by Kugma »

I not great with codes In normal do everything Wrong way

This Is my target Alias
- <MudletPackage version="1.0">
- <AliasPackage>
- <AliasGroup isActive="yes" isFolder="yes">
<name>Target</name>
<script>target = matches[2] fg("yellow") echo("Target: " .. target .. "\n") resetFormat()</script>
<command />
<regex>^t (\w+)</regex>

What I need is The >way to make target uppercase. Like type t you and command would make target You
how do I do that

Also Wondering if someone could Copy and zip the Manual from the website for me and email to Kugma@gmail.com

Not able to load website all the way. Prolly just my internet or browser
I mostly Just get little red X where the Examplet

Also on dailup No viewing Videos at all So not able to see any of Vadi's how to on Utube.


So I seeking.. Text based help. with Mudlet .

Also how do you put var target into triggers
like
target stands up

Yetzederixx
Posts: 186
Joined: Sun Nov 14, 2010 5:57 am

Re: Check this in see if I going about it Wrong.

Post by Yetzederixx »

I don't think you can put a target as part of the pattern, not that I've figured out at any rate. What I've done is this:

Pattern: ^([a-zA-Z']+) stands up.$
Code: [show] | [select all] lua
if (matches[2] == target) then send(defPKCmd .. " " .. pkTarget) end

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Check this in see if I going about it Wrong.

Post by Heiko »

Kugma wrote:What I need is The >way to make target uppercase. Like type t you and command would make target You

Also Wondering if someone could Copy and zip the Manual from the website for me and email to Kugma@gmail.com

Not able to load website all the way. Prolly just my internet or browser
I mostly Just get little red X where the Examplet

Also on dailup No viewing Videos at all So not able to see any of Vadi's how to on Utube.
So I seeking.. Text based help. with Mudlet .

Also how do you put var target into triggers
like
target stands up
1. To capitalize the target checkout the Lua manuals that I've listed in the sticky forum topic on manual & Lua tutorials. Those are a must read anyways. You'll want to change the first character of matches[2] to uppercase. Checkout the Lua string tutorials -> http://forums.mudlet.org/viewtopic.php?f=9&t=641
2. Your browser probably has problems to display the manual because of the included images. Some older browsers can't do this. You can use the text only version mudlet_manual.txt which is included in the source code of Mudlet -> http://mudlet.git.sourceforge.net/git/g ... xt;hb=HEAD
3. You can use this pattern: (\w+) stands up
And this script: if matches[2] == target then send("kill " .. target) end

Post Reply