DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 18, 2018, 11:28:16 AM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: 1 [2] 3 4 ... 31
16  Game Administration, Installation and Configuration / The Idea Place / Re: concerning the spelling bee on: October 20, 2018, 10:37:40 PM
OK, so I worked something up...and it's an ungodly apocalypse, but it ought to work...I replaced 10 lines of code with 57 lines...and that was just for one word.

There's 12 possible words, just as it is currently programmed, so we would be adding 12 x 47 lines or 564 lines...to make this work.

Without a complete rewrite changing the words to be in a database and fetched with an SQL call, anyway.

I personally am not of a mind to want to completely re-write this in order to have it store the words in database and call for them in an SQL call and put them in an array.

And the one method I could do...as I said, is a basically ungodly beast begging for apocalypse.

Here's the original code for one word, followed by my coding that replaces just the one word, and you'd have to do this 12 times JUST to get where the program is now, let alone adding more possible words.
Code:
case 1:
output("`3What is it called when part of a flower is being fertilized?`n`n");
output("`#1) polinatting`n");
output("2) polinating`n");
output("3) pollinating`n"); //correct!
output("4) pollinatting`n");
addnav("`b`G1) polinatting`b","runmodule.php?module=spellingbee&op=jj68baef");
addnav("`b`G2) polinating`b","runmodule.php?module=spellingbee&op=jj84eabf");
addnav("`b`G3) pollinating`b","runmodule.php?module=spellingbee&op=jj86bfea"); //correct!
addnav("`b`G4) pollinatting`b","runmodule.php?module=spellingbee&op=jj68efab");
break;

Replacement code
Code:
case 1:
output("`3What is it called when part of a flower is being fertilized?`n`n");
$wordorder = e_rand(1,6);
if ($wordorder == 1) {
$word1 = "polinatting";
$word2 = "polinating";
$word3 = "pollinatting";
} else if ($wordorder == 2) {
$word1 = "polinatting";
$word3 = "polinating";
$word2 = "pollinatting";
} else if ($wordorder == 3) {
$word2 = "polinatting";
$word1 = "polinating";
$word3 = "pollinatting";
} else if ($wordorder == 4) {
$word2 = "polinatting";
$word3 = "polinating";
$word1 = "pollinatting";
} else if ($wordorder == 5) {
$word3 = "polinatting";
$word1 = "polinating";
$word2 = "pollinatting";
} else {
$word3 = "polinatting";
$word2 = "polinating";
$word1 = "pollinatting";
}
$correctword = "pollinating"; //correct
$correctpos = e_rand(1,4);
if ($correctpos == 1) {
output ("%s`n",$correctword);
output ("%s`n",$word1);
output ("%s`n",$word2);
output ("%s`n",$word3);
addnav(array("`b`G1)%s`b",$correctword),"runmodule.php?module=spellingbee&op=jj86bfea"); //correct!
addnav(array("`b`G2)%s`b",$word1),"runmodule.php?module=spellingbee&op=jj68baef");
addnav(array("`b`G3)%s`b",$word2),"runmodule.php?module=spellingbee&op=jj84eabf");
addnav(array("`b`G4)%s`b",$word3),"runmodule.php?module=spellingbee&op=jj68efab");
} else if ($correctpos == 2) {
output ("%s`n",$word1);
output ("%s`n",$correctword);
output ("%s`n",$word2);
output ("%s`n",$word3);
addnav(array("`b`G1)%s`b",$word1),"runmodule.php?module=spellingbee&op=jj68baef");
addnav(array("`b`G2)%s`b",$correctword),"runmodule.php?module=spellingbee&op=jj86bfea"); //correct!
addnav(array("`b`G3)%s`b",$word2),"runmodule.php?module=spellingbee&op=jj84eabf");
addnav(array("`b`G4)%s`b",$word3),"runmodule.php?module=spellingbee&op=jj68efab");
} else if ($correctpos == 3) {
output ("%s`n",$word1);
output ("%s`n",$word2);
output ("%s`n",$correctword);
output ("%s`n",$word3);
addnav(array("`b`G1)%s`b",$word1),"runmodule.php?module=spellingbee&op=jj68baef");
addnav(array("`b`G2)%s`b",$word2),"runmodule.php?module=spellingbee&op=jj84eabf");
addnav(array("`b`G3)%s`b",$correctword),"runmodule.php?module=spellingbee&op=jj86bfea"); //correct!
addnav(array("`b`G4)%s`b",$word3),"runmodule.php?module=spellingbee&op=jj68efab");
} else if ($correctpos == 4) {
output ("%s`n",$word1);
output ("%s`n",$word2);
output ("%s`n",$word3);
output ("%s`n",$correctword);
addnav(array("`b`G1)%s`b",$word1),"runmodule.php?module=spellingbee&op=jj68baef");
addnav(array("`b`G2)%s`b",$word2),"runmodule.php?module=spellingbee&op=jj84eabf");
addnav(array("`b`G3)%s`b",$word3),"runmodule.php?module=spellingbee&op=jj68efab");
addnav(array("`b`G4)%s`b",$correctword),"runmodule.php?module=spellingbee&op=jj86bfea"); //correct!
} else {}
break;

See what I mean abut it being an ungodly apocalypse??
17  Game Administration, Installation and Configuration / The Idea Place / Re: concerning the spelling bee on: October 20, 2018, 11:58:39 AM
Assuming you have your answers in an array fetched from the database, just shuffle that array (any amount of answers possible) and pass the selected word in your navigation and check on the next page if the word in your navigation is the correct one. No idea what you were planing with printing all 24 (4!) possibilities.

~

No idea since I had not even looked at the module yet.

Update:  Looked at it, and the baues are not stored in any array, they are as I thought they would be... here is a code snip...
Code:
switch(e_rand(1,4)){
case 1:
output("`3What is it when you roam about in search of pleasure?`n`n");
output("`#1)galavanting`n");
output("2)gallavanting`n");
output("3)galivanting`n");
output("4)gallivanting`n"); //correct
addnav("`b`G1)galavanting`b","runmodule.php?module=spellingbee&op=jj68baef");
addnav("`b`G2)gallavanting`b","runmodule.php?module=spellingbee&op=jj84eabf");
addnav("`b`G3)galivanting`b","runmodule.php?module=spellingbee&op=jj68efab");
addnav("`b`G4)gallivanting`b","runmodule.php?module=spellingbee&op=jj64aefb"); //correct!
break;
case 2:
output("`3What is it when you ask for help?`n`n");
output("`#1)assistance`n"); //correct!
output("2)asistance`n");
output("3)assisstance`n");
output("4)asisstance`n");
addnav("`b`G1)assistance`b","runmodule.php?module=spellingbee&op=jj64aefb"); //correct!
addnav("`b`G2)asistance`b","runmodule.php?module=spellingbee&op=jj68baef");
addnav("`b`G3)assisstance`b","runmodule.php?module=spellingbee&op=jj84eabf");
addnav("`b`G4)asisstance`b","runmodule.php?module=spellingbee&op=jj68efab");
break;

SO...the way they have it currently...you'd have to put another randomizer in.  You could assign each word correct and incorrect spellings to a variable, and then depennding on the second random number, have the order different...but without a total re-write of this module, I fail to see how else this could be done?

For example, above you could assign each spelling to a variable, say $word1, $word2, etc.
Then depending on which random number you get, you'd assign the word to that variable

Like this:  $word1, $word2, $word3, $wordcorrect.  The correct word is always the correct word, but you need that to appear randomly, #1 - 4.

So...you still need four sets of navs to make it work....unless you see something I don't...I admit I see no other way to do it.  It doesn't matter where the other ones show up...but the correct word nav must always move.

So...let me think...

Code:
$wordorder = e_rand (1,4);
if ($wordorder == 1) {
addnav $correctword (link)
addnav $word1 (link)
} else {
addnav $word1 (link)
}
///above places either correctword, word1...or else just word1
if ($wordorder == 2) {
addnav $correctword (link)
addnav $word2 (link)
} else {
addnav $word2 (link)
}
///above places either correctword, word2...or else just word2 (word 1 was already placed above)
if ($wordorder == 3) {
addnav $correctword (link)
addnav $word3 (link)
} else {
///above places correctword, word3 (word 2 was already placed above)
addnav $word3 (link)
addnav $correctword (link)
///above places word3, correctword (word 2 was already placed above)
}

That is my best example of how to do it....
If $wordorder = 1 the correct word will be nav1, etc...and if $wordorder =4, then the fourth nav is correct, thus it automatically adds after $word3, so no need for an if statement for $wordorder =4.

Without a total re-write, this is the only way I see of doing this.  If you see something better Anharat, you are welcome to share your wisdom.
18  Game Administration, Installation and Configuration / The Idea Place / Re: concerning the spelling bee on: October 17, 2018, 10:03:26 AM
http://dragonprime.net/index.php?topic=9080

DaveS has retired, but looks like the updates could still be made by someone with available time.  Smiley

Indeed.  And Dave helped me A LOT in my early days as an Admin and fledgling coder.  He debugged a lot of things for me, and taught me how other things work.

I am still nowhere NEAR that caliber of coder Dave was, but I am okay with that.  My coding is sometimes sloppy, but it DOES WORK...which, to my view, is the most important thing.

That said, I have not a lot of spare time myself at the moment.

But what suggestions have you got in mind for the spelling bee?  Maybe I can find some time or someone else can.

That said, the placement of the navigations...for the correct word...it seems as if that ought to be possible...and the idea is intriguing to me, actually.

Seems like a randomizer could be added to mix up the order of the navigations.

Incidentally, with four choices there are 24 possibilities of the order of 1,2,3 and 4 - I believe.

The thing would be...how to do this with a randomizer that does not involve doing the actual navigations 24 times?  I'd have to work on that.

One could assign a letter, say a thru x to represent 24 possibilities.  But how to do it so that the navigations lines appear only once...that is the trick.
19  Game Administration, Installation and Configuration / The Idea Place / Re: concerning the spelling bee on: October 02, 2018, 08:38:13 AM
I'd leave that to the original programmer.  Should they ever decide to work on and update this module, I would the use the updated version.
20  Game Administration, Installation and Configuration / The Idea Place / Re: forest and healing hut not available in hallowe'n village on: October 02, 2018, 08:37:00 AM
I indeed was talking aobout Esoterra or Xanterra (on your site) and I was not sure of it, but indeed you have a  desert in Xanterra on your site. The usual forest on the Harry-Potter-themed website I often visut, is already called "the forbidden forest" but there is a town in the hp-books in which a graveyard is mentioned: Little Hangleton was the hometown of Voldemort's father and grandparents, and Voldemort was reborn on the graveyard where his father was burried. There are cruel creatures in several books: a snake that's hidden in a death woman's corpse (hp-7), inferi (death people who are doing a dark wizard's bidding =hp-6), the elves that are described in the disk world series of Terry Pratchett, the icy creatures that are haunting the northern countries in the "song of ice and fire", ... Perhaps this desert or tundra should get more attention and perhaps needs some extra hallowe''n forest events specifically designed for this forest itself? If there's some interest, I surely can write some scenario's? You can mail me by using my gmail-account with more concrete info or questions what you need and I'll try to help. Best, WW

Unfortunately, the way events trigger and then end, makes it literally about impossible to make it work right...at least, with my somewhat limited coding ability.

Incidentally, on my site, there is another reason why no special events trigger in the special fighting areas...it is by design, and has to do with my birds module.  Any more info on that would present the risk of revealing a game secret, so I won't, but know there IS a peripheral reason for the lack of events in the special fighting areas beyond a lack of ability to make the navigation at the end of an event work properly.
21  Game Administration, Installation and Configuration / The Idea Place / Re: forest and healing hut not available in hallowe'n village on: October 01, 2018, 10:22:52 AM
Hi I wonder why there's no forest and healing hut section in the hallowe'n village. Or is this depending on which game you're playing? I'm not sure if the hallowe'n village doesn't allow this sections, but I suppose that there are creepy creatures that can haunt such hallowe'en forests. Best, WW

This would be depending on what site you are playing on....and specifically, what town to which you refer.  Any site could theme any town as a "Halloween Town" - but if the town you refer to is Esoterra (or what I named Xanterra on my own site) this is an add-on town specifically known as the Ghost Town or Ghost Village.

The short answer is that the original programming and configuration on this module...does not allow for a fighting area to be attached to it, and since Healer's Huts normally appear in the Forest, rather than in-town (exception being the capital city, by default, named Degolburg) - this is why there is not fighting area or Healer's Hut accessible from this village (in the original, traditional and default configuration)

Now, the longer answer is below...

The way this is normally programmed, an Admin can choose to have always access to this town, or to restrict it, in that you need to get a Caravan Ticket to get there (on my site it is set for always-access)

As programmed, this town does not have a Forest at all, there is no fighting area outside of Esoterra, normally.  I added a fighting area, called The Desert, to my Ghost Town (Xanterra on my site.)

Additionally, the Healer's Hut normally shows in the Forest, not in villages (except for Degolburg, the capital city) in the original programming and configuration.

It is possible, through a module, to move Healer's Huts into villages instead of the Forest...or if you are an Admin/coder and know how, you can alter core code to bring Healer's Huts into some towns, as I did with Xanterra on my site (and I also did this with the ice Town, which I call Aurora Borealis.)

So it can be done, and it depends on the site on which you are playing...but, in it's original programming and configuration, the Ghost Town does not have a fighting area attached to it, and thus also does not have a Healer's Hut, since those are normally found in the Forest (with the noted exception of the capital city, Degolburg) - but some Admins, like me...have chosen to alter the core coding and program to make things happen that do not happen with default configuration.

I know that was very long, but that basically answers your question...if, as I think, the "Halloween Town" to which you refer is in fact Estoerra by defualt, which I named Xanterra...and which is actually known among Admins as the Ghost Town or Ghost Village.

This last bit is aimed more at fellow Admins:

I should note here that The Desert...is an add-on module here that can create a fighting area in a place where there is none...or replace any one town's traditional Forest with this different, theme-able fighting area.  You can then stock it with creatures that do or do not appear in other areas of the game.  So, if one wanted to take a Hogwarts theme, one might call such an area The Forbidden Forest, and then load it with the sorts of creatures that inhabit such a place.  And if you wanted to attach it to the Ghost Town, as I did...and you wanted to theme is as a creepy area, you might call it The Crypt, for example...and then stock it with things loke zombies, werewolves and ghouls.  It's actually really very easy to customize.

I went further, copying that module and renaming it so as to have a second themed fighting area, which I called The Tundra, and attached to my Ice Town,

It is normally meant to actually replace a Forest, but I was able to attach it to a town that did not have a Forest, and if you do it that way, you also have to account for Forest Events that would cause you to be transported back to The Forest instead of your special fighting area...which is a bit tricky.  In my case, I disabled all Forest Special Events in this fighting area to avoid this problem.

Anyway, that is a very long answer.
22  Village Square / General Discussion Area / Re: looking for ppl that have writing / storytelling skills on: September 28, 2018, 08:47:40 PM
I could write some content for special events and such, but I do not have a lot of time to allocate.
23  Game Administration, Installation and Configuration / Game Administration Chat / Re: Mod Hack Module?? on: September 24, 2018, 11:29:36 AM

Thanks.  This is what I was looking for.
24  Game Administration, Installation and Configuration / Game Administration Chat / Mod Hack Module?? on: September 24, 2018, 10:45:02 AM
Looking around, but not finding this module...could anyone help me find it?
25  Village Square / General Discussion Area / Re: Sound in lotgd on: September 16, 2018, 05:24:58 PM
I know.  Still though, being extremely myopic myself..I tend to try to accommodate those with visual problems.  The player in question is one who eyes are hurt by some of the colors, and I don't fond it a huge problem to make atemplate for him that does not hurt his eyes, and all that is needed is to fool with the hex codes on one template.

That's very thoughtful that you do that. I have the same for Fandom Kingdom, a plain white and a plain black version of my main template. However, not everyone needs to implement such changes, so mentioning it in every post might end up dissuading other editors from their personal projects.

Fair enough.
26  Village Square / General Discussion Area / Re: Sound in lotgd on: September 15, 2018, 10:01:48 PM
Ah, dang, of course ... the screen reader reads the text and thus music playing in the background would make it difficult to understand at all .. now that seems pretty obvious. sorry for that :-D
Exactly.  That is what I am told by screenreader users, hence why I just took it out of my site when I upgraded.  If yo u want sounds, it should be defaulted to off for everyone, or at least defaulted off for screenreader users, if you wanted to add a step to your character creation so as to know and set the defaults accordingly.

Incidentally...off topic but also trying to create a template with colors that do not hurt the sensitive eyes of a player who has expressed this concern...apparently they have evry bad eyes, even worse than mine, though I am probably heading that same way...
Now I know I can monkey with templates and set up a template that would work for this person, just by changing the hex codes for colors in the specific template.  I am wondering, opinion, if a gray background, like Mist...would be a good one to use for this.  Thinking on just doubling up some of the more intense colors...changing hex codes to match.

They tell me bright red and blue hurt, and has a hard time reading dark red, blue, green, and brown.

Opinions, then...

the code for `1 and `! should be changed
the code for `@ and `2 should be changed
the code for `# should be changed
the codes for `4 and `$ should be changed
probably `5 and `% should be changed
probably `^ should be changed
and that would be the standard colors, anyway...I have more colors, I need to fool with this a bit...

I see you mention screen readers etc quite a lot. Although important and i'm sure help out the visually impaired a lot. It's not practical to build every single module, template, modification etc to fit everyone's needs. You can't please everyone. If something works for the majority, then that is who you should be building for, if you can have it work for the impaired etc then great but you shouldn't "not" do it if you can't.

I know.  Still though, being extremely myopic myself..I tend to try to accommodate those with visual problems.  The player in question is one who eyes are hurt by some of the colors, and I don't fond it a huge problem to make atemplate for him that does not hurt his eyes, and all that is needed is to fool with the hex codes on one template.
27  Village Square / General Discussion Area / Re: Sound in lotgd on: September 14, 2018, 09:30:49 PM
Ah, dang, of course ... the screen reader reads the text and thus music playing in the background would make it difficult to understand at all .. now that seems pretty obvious. sorry for that :-D
Exactly.  That is what I am told by screenreader users, hence why I just took it out of my site when I upgraded.  If yo u want sounds, it should be defaulted to off for everyone, or at least defaulted off for screenreader users, if you wanted to add a step to your character creation so as to know and set the defaults accordingly.

Incidentally...off topic but also trying to create a template with colors that do not hurt the sensitive eyes of a player who has expressed this concern...apparently they have evry bad eyes, even worse than mine, though I am probably heading that same way...
Now I know I can monkey with templates and set up a template that would work for this person, just by changing the hex codes for colors in the specific template.  I am wondering, opinion, if a gray background, like Mist...would be a good one to use for this.  Thinking on just doubling up some of the more intense colors...changing hex codes to match.

They tell me bright red and blue hurt, and has a hard time reading dark red, blue, green, and brown.

Opinions, then...

the code for `1 and `! should be changed
the code for `@ and `2 should be changed
the code for `# should be changed
the codes for `4 and `$ should be changed
probably `5 and `% should be changed
probably `^ should be changed
and that would be the standard colors, anyway...I have more colors, I need to fool with this a bit...
28  Village Square / General Discussion Area / Re: Sound in lotgd on: September 14, 2018, 08:34:49 AM
But what about mood and ambiance ?  Is the problem you describe related to music being intrusive but not mood or is there any technical reason i am not aware of ? I chatted extensively with raiyndarren 2 years ago and she told me that mood and ambiance would be nice things to have. Not sure how you mean that .. oh and of course an option to disable music is a must :-)

I have no first-hand experience with screenreaders.  I am told that the music can interfere with the user being able to hear the screenreader tell them what is on the screen.  I don't actually know, as I said, soince I have no actual experience using a screenreader.  I used to have background music both in the Gardens and in my Inn at Degolburg, and was told it was a problem...and I advised those players the sound could be turned off from preferences, but that it defaulted to being ON.

Am suggesting the default be set according to whether or not they are a screenreader user.  But again, no personal experience.  I took the music out of my site when I moved and upgraded to 1.1.2
29  Coding Support / Coding Support Desk / Re: Witches Garden/Potion Brewing for Magical Arena on: September 13, 2018, 07:50:46 AM
I found the battle arena thing that's similar to the battle arena at hl: it's currently in Zebulon on your current game; it's not pvp related. I think the potions we were talking about can't be used within this arena. But I tested out the potions module, and that's accessible for screenreader users. So, being short: an exchange system for potion ingredients would be great. Best, WW

No, what you found was the Gladiator's Arena.

The PVP Arena, where potions are used IS in Brazoria...I believe it is called Battlegrounds.
30  Village Square / General Discussion Area / Re: Sound in lotgd on: September 13, 2018, 07:48:27 AM
FWIW, background music interferes with people who use screenreaders, so you might make a part of character creation, asking if the player uses a screenreader and then defaulting the music OFF for those players.
Pages: 1 [2] 3 4 ... 31

*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
33 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search