Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
A demarcation character can be anything that you choose to identify the limits of something. For instance, I use the big round dot • as a demarcation character in my Player Profile, so my profile contains a list of my friends, like this... •dbKiller• •FranMod• •WiCiO• •Zezuma• •Risi• •ChuckyBoy• Uhm, you didn't specify any variable to define the demarcation character. ...and when the script finds the dot character, it then starts loading everything after the dot character into a variable, until it finds another occurance of the dot character. Then the script will turn the name captured by the variable into a clickable link. Those who have my script running will see a list of links, while those who don't have the script running will just see names within big round dots, like above. No it won't. The magic part of your script meant to transform the stuff in between the demarcation characters into a link looks like this:
function transformPageProfile()
{
}
So beside the impressive copy and paste work of other scriptwriters, this script is not working at all. Get it to work and I testdrive it for you. Unless you wanted someone else to get your idea working - which could explain the posting of this momentarily worthless script at this moment. |
|
|
Yes, "waiting" is the operative word, sorry. I still haven't gotten around to finishing this script. It will not work as yet. I have listed it as "UNDER DEVELOPMENT" for a very good reason :-) As an Alliance leader, and with a huge victory having just happened, I'm busy sorting out pledges from our former enemies, who are seeking mercy and assylum, and also arranging defenses against some who have decided to delete from the server that I'm playing on, and who are going out with a zerg rush. This is taking up a lot of my online time right now, sorting out the aftermath of our decisive victory, and I haven't had much time to work on this script. I do apologize, and will get it finished soon. |
|
|
<<waiting> |
|
|
Hi,
|
|
|
ِahaa, I got it now,
|
|
|
Sure! A demarcation character can be anything that you choose to identify the limits of something. For instance, I use the big round dot • as a demarcation character in my Player Profile, so my profile contains a list of my friends, like this... •dbKiller•
...and when the script finds the dot character, it then starts loading everything after the dot character into a variable, until it finds another occurance of the dot character. Then the script will turn the name captured by the variable into a clickable link. Those who have my script running will see a list of links, while those who don't have the script running will just see names within big round dots, like above. |
|
|
hey,
|
|
|
Hey, I am honored to have you leave the first comment on my very first attempt at writing a script! I love your work, and as you can see, I have already copied some of your code. You are correct, people will need to use a format. All that I am suggesting is a demarcation character at the start and end of a player's name. Currently, on my own Player Description page I use the • (the bullet mark) before and after my Personal NAP friends names, and that is where I got the idea for this script. If I can search for that character, then copy the following characters until I next reach the demarcation character, then I will be able to fill a variable with a player name. Once I have that, then, as you say, I can search for the userid using code that already exists out there, and turn the name into a URL. I'm a complete novice at GreaseMonkey scripting, so I appreciate any advice or tips you can give! |
|
|
Hi,
Then you can either make people insert also the userid OR search it in the statistics. If you go with this last option I would suggest you save the userid, playerName pair so you don't need to ask the server again the next time you go to your profile. Well anyway... go luck with the script... I'm adding a couple of diplomacy stuff also on mine - but not personal diplomacy. |