[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  missing sub help please
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

missing sub help please

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1  2 

Posted by Perrin   USA  (31 posts)  [Biography] bio
Date Reply #15 on Tue 30 Nov 2010 12:45 AM (UTC)  quote  ]

Amended on Tue 30 Nov 2010 12:58 AM (UTC) by Perrin

Message
Well then honestly nick the real problem is my proficiency
with scripting. I was attempting to make a spellup plugin that grows with the user without a large database using skill and lvl checks since muds evolve and spellmsgs change.


If what I am trying to do isn't really feasible. All I can do is drop the matter since it works fine for me if I move the problematic code to world aliases. Was just trying to make something cool for my friends.

aardwolf player
[Go to top] top

Posted by Nick Gammon   Australia  (19,599 posts)  [Biography] bio   Forum Administrator
Date Reply #16 on Tue 30 Nov 2010 01:17 AM (UTC)  quote  ]
Message
It's feasible - I did a spellups plugin myself a while back.

But I think the idea of adding thousands of triggers (or aliases) isn't the way to do it. It just gets confusing.

I suspect that you are taking a tintin approach (or maybe you are used to another client) where you typically have a file which loads up lots of aliases from a big list.

Just as an example, say you were planning to do lots of spellups, and as each new spell was learnt you added a new alias, eg.


spellup heal
spellup major heal
spellup cure light
spellup cure heavy


Well personally, instead of adding dozens of aliases I would have one alias with a wildcard, eg.


spellup *


Then you look up the wildcard (ie. %1 in the alias send window) and see if you know that spell, and if so, cast it.

Then you just need a database (table) of spells you know, rather than a database of aliases. It's just simpler and easier to understand.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Notaskixa   (5 posts)  [Biography] bio
Date Reply #17 on Tue 24 Jul 2012 04:18 AM (UTC)  quote  ]

Amended on Tue 24 Jul 2012 04:21 AM (UTC) by Notaskixa

Message
Not sure if this thread is dead or how correct my assumptions are but seems to me Perrin is only using a few aliases in total and about 3-5 triggers per spell to track certain things such as:

the cast was successful, the affect is active, the affect wore off, the cast failed, and if the cast failed to recast.

Seems he is only using the alias in the original post to cause the enabled triggers to fire (only makes sense to me that way at least) instead of causing all the spells to cast. But i have no idea how to make the client add triggers to a plugin if that's what he's trying to do.

Nick didn't think he could use tables unless he switches to Lua.

Just trying to clarify something that was mentioned on the thread wouldn't " translate out to " since " translates to " but don't really see a reason to use it unless for personal readability
[Go to top] top

Posted by Nick Gammon   Australia  (19,599 posts)  [Biography] bio   Forum Administrator
Date Reply #18 on Wed 25 Jul 2012 03:07 AM (UTC)  quote  ]
Message
The XML sequence " will become a quote sign once that is imported into the client.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,821 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]