Item database with variables

Posted by Errigour on Wed 31 Jul 2013 06:48 AM — 11 posts, 43,196 views.

USA #0
I want make a variable called swords that I can store each chunk of data that the mush client triggers to. The thing is basically the trigger is "You become more knowledgeable about *." and I want to store the star to the variable swords if the name of the object isn't already stored to the variable swords. If anyone can help me or show me a better way of creating a item database please let me know.
Australia Forum Administrator #1
http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=113

Read the links about "Lua tables".
USA #2
That just brought me to the lua forum.
USA #3
Oh wait I see it sorry thanks Ill read it.
USA #4
Is there a way for me to speed up the sends and receives that mush client controls. It seems that the program lags preventing me from playing the mud the way it can be played. Is that a mush client thing or my os or something that causes lag?
USA Global Moderator #5
Give more details.
Aardwolf steps at 8Hz and MUSHclient works just fine there.


Quote:
Is that a mush client thing or my os or something that causes lag?

How are we supposed to know? MUSHclient works perfectly well for us and you've given no information.
Amended on Thu 01 Aug 2013 02:20 PM by Fiendish
USA #6
I don't know many details about it I just know its been really responsive before and most of the times it isn't. Also thanks for mushclient Nick!
Australia Forum Administrator #7
Errigour said:

Is there a way for me to speed up the sends and receives that mush client controls. It seems that the program lags preventing me from playing the mud the way it can be played. Is that a mush client thing or my os or something that causes lag?


MUSHclient is supposed to be fast, and various tests show it is.

This video for example shows the client reacting quickly to lots of message, fast enough to update on-screen maps, play music, and generally be very responsive:


Amended on Mon 25 Nov 2013 08:23 PM by Nick Gammon
USA #8
How do I do that with a script file? I made this lua file but when I load it I cant use the function in it with triggers. I want to make a script file that will respond to cose to thirteen maybe twenty lines of data sent to it and write the data to a file when I use the function store(). Is there any way you can help me with that I haven't ever made a lua file and put it to use yet.
USA #9
Hey I hope I haven't offended anyone here, and also I want to make sure that you guys know I am not a bot or anything I actually mud you can come chat on necromium.com port 4000 mud
or go to necromium.com and click play now, I would like a team mate in the game ill help with your levels and what not it isn't that hard its actually a very fun mud. You guys have been great maybe you could tell me how to view all the posts I have posted, if you can't maybe I can make this my suggestion without offending anyone. Thanks very much for taking the time to read this.
USA #10

Here's an example of the identify object that I want to store. The top line has stars in it and that's because that stuff changes and I don't know exactly how they will appear and they appear with more then one line so its difficult to know exactly what to expect for me. I am making a guidw for my game and I would prefer to identify an object and the object be in my database if the name
You become more knowledgeable about *,
was checked if it exists, I might be able to do figure out how to do that on my own but I don;t know how to make a trigger with a lua script file that will handle that, in fact I don't know how to make the trigger at all. Its a pretty strait forward game and I am making a pretty strait forward game guide for it.

You become more knowledgeable about blood soaked armor, carved of granite.
Object from zone: The Caverns of Flame.
Object Attributes: ANTI-MAGE, ANTI-THIEF, rare
Weight: 21.6 lbs Value: 1,200 coins
It can be worn on your body.
This object is looking slightly worn.
You must be at least level 20 to equip this item.
This item will increase your defense by +8.1%.
This weapon has damage dice of '12D3'. Average damage: 24.0
It also absorbs 2 damage from your opponent's attack.
This object will *.
This object will affect you by *.

Object from zone: The Caverns of Flame.
Object Attributes: ANTI-MAGE, ANTI-THIEF, rare
Weight: 21.6 lbs Value: 1,200 coins
It can be worn on your body.
This object is looking slightly worn.
You must be at least level 20 to equip this item.
This item will increase your defense by +8.1%.
This weapon has damage dice of '12D3'. Average damage: 24.0
It also absorbs 2 damage from your opponent's attack.
This object will INCREASE your level of strength by 1,
INCREASE your level of constitution by 1,
RAISE your ATTACK by 9.0%,
RAISE your DAMROLL by 5.0.
This object will affect you by waterwalk.

I basically want to check the output I know it ends with a line that ends in a period that starts with "This object will affect you by" and I dont know if anything else may appear but I can handle that if some how I can check starting from the line "You become more knowledgeable about" and ending in the line "This object will affect you by*.". Is tehre a way I can make a trigger that will do that?