11

Valorant Simulator Edit Values

Comments:
Threaded Linear
#1
yukky

If you're not satisfied with some of the player values in ValSim, good news: since everything is stored locally, you can easily edit them yourself!!!!!!!!!!

For anyone interested in tweaking players or teams, check out this tutorial: ValSim Editing Tutorial.

This also opens the door to creating some fun custom gamemodes. For example, here's a script for a gamemode I call "Everyone is Good and Cheap"—it sets every player to have 80-90 ratings, a $0 salary, and a 99 potential.

To apply it, just copy the following code into your browser's console (press Ctrl + Shift + I to open it). Before pasting the code, make sure to enable pasting by typing: allow pasting

MAKE SURE YOU'RE ON THE WEBSITE WHEN YOU PASTE THIS CODE

/*
 GET YOUR DB NAME BY GOING INTO DEV TOOLS (CTRL+SHIFT+I)
 CLICK APPLICATION (IF IT IS NOT THERE, CLICK THE >> AND THEN CLICK APPLICATION)
 LOOK ON THE LEFT SIDE AND FIND THE STORAGE CATEGORY
 UNDER STORAGE CLICK 'IndexedDB'
 THERE WILL BE YOUR DB NAME, IT LOOK LIKE
 ValSim-USER-TEAM-TIME
 AND THEN COPY THE DB NAME THAT YOU WANNA EDIT
*/

// OPEN CONNECTION
let request = indexedDB.open('YOUR-DB-NAME');

request.onsuccess = (event) => {
    let db = event.target.result;
    let transaction = db.transaction(['players'], 'readwrite');
    let objectStore = transaction.objectStore('players');

    objectStore.openCursor().onsuccess = function(event) {
        let cursor = event.target.result;
        if (cursor) {
            let player = cursor.value;

                // Set developmentSpeed to 5
                player.developmentSpeed = 5;
                // Set potential to 99
                player.potential = 99;
                // Ensure the latest contract's salary is 0
                if (player.contracts && player.contracts.length > 0) {
                    player.contracts[player.contracts.length - 1].salary = 0;
                }            
                ['aim', 'aggression', 'hs', 'clutch', 'support', 'movement'].forEach(attr => {
                    // 80-90 Rating
                    player[attr] = Math.floor(Math.random() * 11) + 80;
                });
                // Put the updated player back into the database
                cursor.update(player);

            cursor.continue();
        } else {
            console.log('All players have been processed.');
        }
    };

    transaction.oncomplete = function() {
        console.log('Transaction completed: database modification finished.');
    };

    transaction.onerror = function() {
        console.error('Transaction failed');
    };
};
#2
Laundry
2
Frags
+

yukky my goat ♥️

#3
Prasinos
2
Frags
+

Thank you.

#4
number1_cned_hater
6
Frags
+

Can I edit money into my irl bank account with this method

#5
yukky
5
Frags
+

thats a little bit more complicated

#6
Azzelastia
0
Frags
+

Game is worthless right now.

#7
yukky
0
Frags
+

?

#8
Azzelastia
-1
Frags
+

They gotta fix the ratings.

#10
yukky
1
Frags
+

That is why I made this thread. It lets you fix the ratings!!!!

#9
H3ENnZ
0
Frags
+

Can u invest on players in this game

#11
yukky
0
Frags
+

No idea what this means!!!!

#12
Juanirlv
0
Frags
+

GOAT

#14
yukky
0
Frags
+

haha thanks!

your friend is the real goat for making the site

#13
cloudberry
1
Frags
+

Thanks yukky, I've always wanted an insanely powerful johnqt who costs nothing :)

#15
yukky
0
Frags
+

no worries cloudberry!

i always knew it was a dream of yours

#16
cloudberry
0
Frags
+

You know me so well <3

#17
AlexSMTx
0
Frags
+

the one intro to python class i took 2 years ago gonna do wonders

#18
number1_cned_hater
0
Frags
+

its html..

#19
yukky
0
Frags
+

its javascript...

#21
number1_cned_hater
0
Frags
+

ngl I thought it was html cause thats whats used to code websites

#23
cloudberry
0
Frags
+

HTML is for the skeleton (text and headings and allat), CSS is for the styling (how it looks, essentially), and JS is for interactivity and certain other stuff

#24
yukky
0
Frags
+

ur so smart

#26
cloudberry
0
Frags
+

If by "smart" you mean "borrowed a book about coding a website when you were 9 because it had a robot dog on the cover so you thought it was a picture book" then you're SO right

#22
cloudberry
0
Frags
+

It's Minecraft enchantment table...

#20
AlexSMTx
0
Frags
+

you can tell why only took that one intro class and never touched programming again

#25
Window
0
Frags
+

king shit

#27
Syr0m
0
Frags
+

yooo

  • Preview
  • Edit
› check that that your post follows the forum rules and guidelines or get formatting help
Sign up or log in to post a comment