Questions
Got a Question relating Directly to MDScript? ask it here
27 topics in this forum
-
Why am I getting this warning? I tried integer vs real values in the variables and that doesn't matter.
- 8 replies
- 2k views
-
Does MDScript offer features of OOP?
-
- 8 replies
- 2.6k views
-
-
When using the @content, how can you string multiple @content. For example: if(uv('name')== 'Assira the Black'){ print @content[1]; } I would want @content[0] and @content[1] show. I have tried print @content[0] + @content[1] but it does not work and I have tried () around the two. I am a noob at all this and probably missing a simple addition to the code. Any suggestions?
-
- 3 replies
- 2.2k views
-
-
I have started to learn the basics of PHP coding but I am a bit confused when applying what I am learning to the MD clickables (through my Legna character). I have no prior knowledge to coding and find the jargon used on the forums to be confusing. So far I have reached a very basic understanding of the if/else and case. Is there anyone who has the time to lend a hand?
-
- 6 replies
- 2.1k views
-
-
I've been reading around and there are stuff I can't find explained enough or I just don't understand them, mostly it's case two, so here are some questions. @input stores just the input of "rpc-keyword" (standard input field on all clickables) or does it store variables for customly created forms too? If so... I'm not quite sure how to fetch all those data. But I assume @input[0] is rpc-keyword while all sequential vars in array would be those of custom form in same order? What is the limit on variable size, how many char? I kind of need to know if I plan to have users input possibly large texts. What is difference between @store and @storage? In few places I…
-
- 8 replies
- 2.1k views
-
-
Often, I have a good idea, and get stuck for a few days on how to "make that work" before I even write actual code. Perhaps we cna use this thread to Bounce ideas off each other, and help out. Even non-coders could use this thread as a resource to pool our collective Brainpower into implimenting things. So, Ask away! My first example: A database of sorts that checks if you've done specific activities, like "click this button every day". and earns the user points for staying "active". A secondary interface that lets a seperate user view the "Activity Score" of other individuals and mess with it somehow, either by granting them a bonus, or a pen…
-
- 2 replies
- 2.5k views
-
-
I have no idea what's going on here. I'm aware that there are words the code doesn't like, like "ini", "try" and many others. Because i hate avoiding all those random letter-combinations, i almost always write my texts in the content-bit and go with echo @content[x] for the php-bit, to avoid issues. But now i found something the code seems to hate even more, "terror". When your text contains "terror" on the content-side and you let the php-side echo that specific content, it works, but shows the whole block of text as warning message before working. Why is that, and are there other words that make the code choke? Because it took me ages to find what act…
- 5 replies
- 1.7k views
-
I seem to have exceeded the allowed storage limit on an MDS_storage variable. Now I can't even load it to break up the data into pieces. I have PM'ed Mur for help. Any solutions on how to rescue this data short of intervention by Mur? p.s., Printed out the data is/was/should be about 10 pages of text. Very surprised this hit the limit....
-
- 15 replies
- 3.8k views
-
-
The following prints onto the page at the bottom of my item the Watering can "ERROR: undefined editing state #err:01167771. ID 1875 u:95773. L:" Ideas? Awi
-
- 7 replies
- 2.1k views
-
-
Just a random thought, inspired in part by Fyrd's chessboard idea, and also on my own quest I'm trying ot make "automated" now instead of via PMs... Is there a way to check the id, or type of creatures a player has in their army? I highly doubt it, because I can see it being "spoilery" to sneak peeks into a person's potential defenses (well, those that change their Personal Profiles to not show them by default). Still, if there is a way, I'm trying to figure it out, in hopes of working something into my quest. (spoilery info of my own: Get a creature, upgrade it once, Ding you win that round of questions) Thoughts?
- 5 replies
- 2k views
-
Sort of trivial questions, but the forum seems empty... Why is "soap" a reserve word in the code section? And for the first time ever, I've found a word that is not allowed in the CONTENT section -- "terror". Why is this one special? Code I would understand, but in the content section?
-
- 1 reply
- 1.6k views
-
-
How do you echo an avy by ID number (e.g., one in your vault)? Also, is there a way to print out the negative (white on black) of an avy?
-
- 7 replies
- 2k views
-
-
I have a coding problem (details below) I could solve with an infinite loop but that would not only be wasteful, it could also contribute to the internet delays we are experiencing. Are others already using this technique, and is that perhaps why we are seeing internet hangs? What I want to do is have the code progress to a point, wait for user input, then proceed. I have code with a "submit" type button in one clickie that has no reporting, which executes the entire page, sweeping past the null-entry of the submit button. When you hit it, the entire page of code executes again, this time using the entry. I have code with a "submit" type button in another clickie…
-
- 3 replies
- 1.9k views
-
-
Ok...after playing all day with some scripts I realize that I can't get what I want. Maybe someone can help. So..what i want: Let's say I have 10 click-ables. I need to store for 9 of them the player name and a number so when I click the 10th I am able to see all the numbers a player has gathered. I know that I need to store an array but question is: HOW? Right now my brain is stuck and it seems I cannot find the strength to star over.
-
- 12 replies
- 2.2k views
-
-
So I've been having some issues with the displaying qualities. I'm fairly certain the issue is the html and css of MD rather than php, but here is a watered down version of what I'm having issues with: html side [code] <form method="post" action=""> <textarea rows="20" cols="30" name="ApoProbs"> Add apostrophes or quotes in this box!! </textarea> <input type="submit" value="Submit!"> </form> <--! content separator --> <style type="text/css"> //This CSS is used to ensure that the pre will have wordwrap, rather than extending all the way off the page. pre { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wra…
-
- 2 replies
- 1.6k views
-
-
See title. 'ap' is not on the approved list. Is there some reason for that?
-
- 11 replies
- 3.1k views
-
-
Since I started my first clicky based quest, two people have encountered a weird bug. Instead of getting the key which the script gives them at the start, they immediately get the last key, which allows them to see the list of people who started/finished the quest, but not actually do the quest. They're also not listed in said list, because the list is based on a stored variable, not on keys. I managed to write a small script that takes away the troublesome key from affected people, after which they try to start the quest again, with the standard quest procedure and then they do seem to get the right key and get added to the list. Which makes this bug non reproducible, …
-
- 5 replies
- 1.8k views
-
-
(locations 7_statuehalldoor_1) has a restricted phrase - stat - in it. This seems to mean that, currently, no script can be placed on the pillars by the door, or in any other such place. I guess the location setting needs to be able to read off a variable, or something. (disclaimer: I'm a noob scripter)
-
- 7 replies
- 2.3k views
-
-
At least two Questions: First, how often must you refresh your clickies? Or was there some sort of one-time event recently that wiped the sign outside Wind's for me? The script was still saved, just deactivated. Second, if you list multiple locations on a clickie, how do you actually use that? I've not seen script from one clickie show up (activate) at a second location, even with passwords...
-
- 2 replies
- 1.5k views
-
-
Can someone provide me with some guidance on how to import CSS into a scriptable item? More specifically, can I import MD's own CSS? Awi
-
- 2 replies
- 1.5k views
-
-
I'm just curious if any of the scripts work right now..because I added @allowed_locations='1_0x0_1', the clicky is at GoE, but it still won't let my script run.
-
- 5 replies
- 1.6k views
-
-
I noticed that variables which are loaded and stored using retrieve(@vs)and store(@vs)are local to the user who runs the script. I am looking for a variable that will store information which every user who runs the script will get the same value. This variable could be used to store the number of times a script is called or store the name of the last person running the script so it could be displayed for the next user. Is there any kind of variable which can do this? Cutler
-
- 5 replies
- 2k views
-
-
The inability to print upper case letters from the MD script makes it impossible to load external sites with capitalized letters. The only way I could get my scripts to load was to have them load from the default @content[0] section. Now that this has to be echoed as well all of my scripts are broken. Mur, can you get rid of the making everything lowercase it doesn't make anything more secure. Cutler
- 13 replies
- 2.3k views
-
is there a delete button lets say when you are done using the clickable? so it deletes everything you put into it automatically
- 30 replies
- 4.6k views
-
how do you make something like "Click Here" = perform action
-
- 3 replies
- 1.7k views
-
Member Statistics
- 4581 Total Members
- 936 Most Online
-
services Newest Member ·
Forum Statistics
- Total Topics 17.5k
- Total Posts 182.2k