Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ missing sub help please
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Perrin
USA (31 posts) Bio
|
Date
| Reply #15 on Tue 30 Nov 2010 12:45 AM (UTC) 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #16 on Tue 30 Nov 2010 01:17 AM (UTC) |
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.
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 | Top |
|
Posted by
| Notaskixa
(5 posts) Bio
|
Date
| Reply #17 on Tue 24 Jul 2012 04:18 AM (UTC) 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #18 on Wed 25 Jul 2012 03:07 AM (UTC) |
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 | 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.
70,029 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top