[Deprecated] Instructions on how to mark face-up cards in duels
Posted: Tue Sep 29, 2020 7:29 am
As of August 2023, duelingbook has introduced the ability to manually modify ATK and DEF values on the field, making the method in this guide obsolete. I won't be coming back to this guide or updating it, but it will remain archived.
At the time of writing this, duelingbook currently does not allow players to mark face-up cards in duels, so I have decided to create instructions on how to do so using javascript bookmarks.
There are multiple reasons why a player would want, or need, to be able to mark face-up cards in duels. Take for instance "Apollousa, Bow of the Goddess". This is a Link Monster with the effect, "The original ATK of this card becomes 800 x the number of Link Materials used for its Link Summon. Once per Chain, when your opponent activates a monster effect (Quick Effect): You can make this card lose exactly 800 ATK, and if you do, negate the activation."
Currently, in duels on duelingbook, this Link Monster will always have it's attack value displayed as just a question mark while it is in a monster zone, with no way for players to manually modify this attack value to match the attack value that it should have, whether that attack value is 3200, 2400, 1600, or any other value it's supposed to have in the duel at that moment.
This means that players are left with no choice but to mentally keep track of it's attack value at all times. This is a problem because players cannot be expected to consistently remember constantly-changing attack values of monsters throughout duels without forgetting something. When players are forced to do this, the end result is that they inevitably end up forgetting how much attack certain monsters have, and thus have to go back and review logs and/or chat history to see what the changes were, which is tedious and a waste of time.
In order to alleviate this issue, many players, myself included, used counters as a means of keeping track of the attack values of our Apollousa, Bow of the Goddesses. This means that, for every Link Material used to Link Summon this monster, we place 1 counter on it. If Apollousa, Bow of the Goddess was Link Summoned using 4 monsters as Link Material, we would place 4 counters on it. If it was Link Summoned using 3 monsters as Link Material, we would place 3 counters on it. If it was Link Summoned using 2 monsters as Link Material, we would place 2 counters on it. Then, when we want to activate it's effect to have it lose exactly 800 attack so that we can negate a monster effect activation, we would simply declare that we are activating the effect and remove a counter from it.
The number of counters on it would indicate how much attack it had remaining, as we could simply multiply said number of counters by 800 to determine it's remaining attack value. This proved to be a simple and straightforward process, and it proved to be an efficient easy way to compensate for not being able to manually mark the attack value on the card.
However, some users such as Genexwrecker have decided that we should not be allowed to use this easy effective efficient simple straightforward method for keeping track of the attack value of Apollousa, Bow of the Goddess. https://forum.duelingbook.com/viewtopic.php?f=13&t=11517
As a result, I have decided to come up with a way to mark face-up cards in duels so that you can, for instance, manually type in 3200, 2400, or whatever other attack value your Apollousa, Bow of the Goddess should have, and have that number marked on the card so that it is visually seen on the card itself.
First things first, like always, when doing any kind of javascript on duelingbook, you must make sure javascript is enabled/allowed on duelingbook. This is what it looks like on Google Chrome.
You may be told to refresh/reload your page.
On other browsers like mozilla firefox, javascript may already be enabled/allowed on duelingbook by default. Either way, after making sure javascript functions properly on duelingbook, create a new bookmark for your browser. Name it whatever you want. For this demonstration, I will name it "card modifier".
In the box that says "URL," copy and paste this entire line of code:
javascript:(function(){var overlay=document.createElement('div');Object.assign(overlay.style,{position:'fixed',top:0,left:0,width:'100vw',height:'100vh',zIndex:99999999,background:'transparent',cursor:'crosshair'});document.body.append(overlay);function getElement(event){overlay.style.pointerEvents='none';var element=document.elementFromPoint(event.clientX,event.clientY);overlay.style.pointerEvents='auto';return element};document.addEventListener('mousemove',function(event){var element=getElement(event);if(!element)return;var position=element.getBoundingClientRect();Object.assign(overlay.style,{background:'rgba(0, 128, 255, 0.25)',outline:'1px solid rgba(0, 128, 255, 0.5)',top:''+position.top+'px',left:''+position.left+'px',width:''+position.width+'px',height:''+position.height+'px'})});overlay.addEventListener('click',function(event){document.body.removeChild(overlay);var element=getElement(event).parentElement.parentElement.querySelector("span[class='name_txt']");var text=element.textContent||element.value;text=text.replace(/\n[ \n]+\n/g,"\n").replace(/\n\n+/g,"\n\n").replace(/^\n+|\n+$/g,'');if(!text.match("\n"))text=text.replace(/^ +| +$/,'');var promptext=window.prompt('Enter name:',text);if(promptext!=null)element.outerHTML=element.outerHTML.slice(0,76)+'white; white-space: nowrap; font-size: 300px;">'+promptext+'</span>'})})()
Then click the "Save" button to save it. It's located here:
On mozilla firefox, it looks like this:
Now, after you save your bookmark, go into solo mode or any duel, and bring out the card that you wish to mark, either onto the field, into your hand, in your extra deck, in your graveyard, or banish it face-up. For this demonstration, I will be bringing out Apollousa, Bow of the Goddess onto my field.
Once you've brought out your card that you wish to mark in any one of those locations, click on your newly created bookmark. If everything was done correctly, this should happen:
A big blue rectangle should fill your screen, or at least a part of it, and also your cursor should turn into a[/size] plus + [size=150]symbol that gets followed around by the blue rectangle.
When this happens, click on the face-up card you wish to mark. Notice how when you hover your mouse over it, the blue rectangle that once filled your screen now just fills that card. That shows you that the card is selected.
When you click on the card, a little window should come up. On Google Chrome, it looks like this:
On mozilla firefox, it looks like this:
Type in anything you want in the box, and then either hit the Enter key on your keyboard or click the OK button.
Now the name of the card should change to whatever you inputted.
This is what the whole thing looks like on Google Chrome.
This is what it looks like on mozilla firefox.
The best part about all of this is that the modification will remain even if the modified card leaves the field, becomes an xyz material, or gets flipped face-down, and you can even edit the card while it is in the deck, graveyard, face-up on the field, in an extra deck, or while it is banished, as long as it is face-up for you to see in any of those locations. In fact, I think the only way the modification will revert back to normal would be if you refreshed the entire page.
Now you will be able to manually mark your Apollousa, Bow of the Goddess and other face-up cards which will make it easier to keep track of things like attack value, as you can mark the card so it reads "ATK: 3200" or "ATK: 2400" and so on.