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.
Entire forum
➜ MUSHclient
➜ General
➜ Please help! I need what I assume would be a simple script.
Please help! I need what I assume would be a simple script.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Jodans
(4 posts) Bio
|
Date
| Sun 20 Aug 2006 11:01 AM (UTC) |
Message
| Ok, here is the deal.
I do NOT know how to script.
I have tried for hours to figure it all out but I am just plain out lacking in needed knowledge.
So if some kind sould out there could write a script for me I would be extremely grateful.
Basically what I have now is two triggers for ship building outcomes.
You finish modifying the ship.
and
Where to begin? It all looks so complex...
Each of these is set to send the same thing to world:
buildship ship compnent
But there are 4 components and multiple types of ships.
so I was hoping for some sort of script that if I type say:
build xwing circuits
It will change what the triggers send to "buildship xwing circuits" for whenever those triggers fire.
Then after I am done with cicuits I could type build xwing engines and the triggers will be set to put engines instead of cirtcuits.
The most I could ever figure out was how to make build xwing circuits turn those into variables.
So I have two variables, ship and object.
I type build xwing hull and in my variables list ship = xwing and object = hull.
But I cannot figure out how to make the triggers send these variables to the world with the command "buildship" in front of them (hell I cant get them to get sent to world PERIOD)
Anyway I hope this makes sense. | Top |
|
Posted by
| Onoitsu2
USA (248 posts) Bio
|
Date
| Reply #1 on Sun 20 Aug 2006 11:52 AM (UTC) Amended on Sun 20 Aug 2006 12:03 PM (UTC) by Onoitsu2
|
Message
| In the triggers make sure you have checked "Expand Variables" then in what the triggers send, this can be several things, but since you have stated you are not familiar with scripting, lets go with the plainest...
buildship @ship @object
That is what the trigger should be doing, but I noticed a problem with the logic in your execution of this task, if you complete the upgrade, you will attempt to build that part again, this is all fine and dandy if there are multiple levels of upgrades, and the message once it cannot be build is different, BUT if it happened to be "You finish modifying the ship." every time, then you will get stuck in an endless loop ...
How many ship types are there? Too many to list? and how many objects are there to build? If you had the entire list I could probably make a plugin that would build an entire ship based upon what kind of ship, and would go part by part building, I just need a few messages your MUD sends, such as the Completed Upgrade message, if that is "You finish modifying the ship." then I already know that, and the "Where to begin? It all looks so complex..." I would assume is the failed message, but I would also need the "You cannot build that, it is already modified YOU IDIOT!!" type of message, just for prevention of plugin going awry.
and I can help you write an alias that you type build SHIP OBJECT, where you replace SHIP and OBJECT with the appropriate values, but need to know if either can be multiple words, as opposed to a single word?
I also need to know what scripting language your muchclient is set to (ctrl + shift + 6, or Game menu, Configure, Scripting) so that I can script in THAT language for you.
Laterzzz,
Onoitsu2 | Top |
|
Posted by
| Jodans
(4 posts) Bio
|
Date
| Reply #2 on Sun 20 Aug 2006 08:13 PM (UTC) Amended on Mon 21 Aug 2006 11:37 AM (UTC) by Jodans
|
Message
| Hi, thanks for taking the time to trya nd help me out.
I really appreciate that.
I just spent some time with what you said.
And found oout that @ship and @object with variables expanded was EXACTLY what I needed.
I have my triggers up and running. Thank you so much! | Top |
|
Posted by
| Onoitsu2
USA (248 posts) Bio
|
Date
| Reply #3 on Mon 21 Aug 2006 02:44 PM (UTC) |
Message
| Just glad to have helped, and also glad to hear you are up and running :)
Again like i said I might be able to make a plugin that builds an entire ship, but I need a part list, and ship type list. But then again you may not be interested in such a thing.
Take Care and Happy MUD'ing,
Onoitsu2 | 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.
14,258 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top