plane445Join Date: 2012-11-25 Post Count: 105 |
I have a game that runs experience for levels in game, is there a command or can someone give me a link to an admin command script with a experience command in it? That is all I am looking for!
Thanks in advance |
|
seacat26Join Date: 2011-08-19 Post Count: 6265 |
Like a leaderboard?
ᔕᙓᗩᙅᗩ☂26 |
|
|
plane445Join Date: 2012-11-25 Post Count: 105 |
No, Where I can give my self the experience with a command. |
|
KurokkuJoin Date: 2015-08-01 Post Count: 4699 |
Your being vague, does your currency run on leaderboard or in a database with guis? |
|
WrathsongJoin Date: 2012-07-05 Post Count: 22393 |
Press F9, click Server Log, then run this line:
game.Players.plane445.leaderstats.xp.Value = game.Players.plane445.leaderstats.xp.Value + 100
assuming your stuff is named 'leaderstats' and 'xp' |
|
KurokkuJoin Date: 2015-08-01 Post Count: 4699 |
That's adding value if I'm correct? Is there a way to set value? |
|
WrathsongJoin Date: 2012-07-05 Post Count: 22393 |
Yes, that adds value. Setting value:
game.Players.plane445.leaderstats.xp.Value = 100 |
|
KurokkuJoin Date: 2015-08-01 Post Count: 4699 |
Alright thx I'm gonna start learning lua due to how bad I am at such simple things |
|
WrathsongJoin Date: 2012-07-05 Post Count: 22393 |
Good idea. You might find my channel helpful.
https://www.youtube.com/channel/UCXF7DezJJEEm1kGwmSq_ELg/videos |
|
KurokkuJoin Date: 2015-08-01 Post Count: 4699 |
Thx for teaching me what tables and debounces are, they were helpful (: is there a way to make a table have a certain rarity and can you make a video that links tables with guis and teach us how to make a Csgo case opening thing? |
|
WrathsongJoin Date: 2012-07-05 Post Count: 22393 |
Are you talking about some sort of daily rewards thing? |
|
jody7777Join Date: 2009-02-22 Post Count: 1343 |
you can randomize the selection of a element from the table by randomizimg the index that it selects |
|
WrathsongJoin Date: 2012-07-05 Post Count: 22393 |
^
gotta fill up table with info for this though |
|
KurokkuJoin Date: 2015-08-01 Post Count: 4699 |
Can you make a video of it please and teach use how to set up tables like that? My goal is to have a currency system and then once you have let's say 100$ you can buy a case and it will randomize everything and pick a random item let's say it's a sword, once you get that item it gets placed in your inventory |
|
plane445Join Date: 2012-11-25 Post Count: 105 |
It dint work. Here is a link.
Link of what showed up.: https://gyazo.com/5cdcb62dace68ba6ae84bb02e4cad318 |
|