#Help with Skript-Placeholder
1 messages · Page 1 of 1 (latest)
for balance/economy: skript has vault support
for custom values: make a skript scoreboard using something like SkBee, and just use %{variable_here}% like you would any other place
I tried using it
on actionbar
it sent me errors

wait
if event-block is wheat[age=7]:
if name of tool is "&x&E&6&A&6&7&1Wooden Hoe ★★":
send action bar "&e+$1.50 &8%vault_eco_balance_commas%" to player
add 1.50 to the player's account
apply potion of speed 1 without particles to player for 1 second replacing the existing effect
play sound "entity.experience_orb.pickup" with volume 0.1 to the player```
here
i think the error is that wheat[age=2] isn't valid in skript, so all the code below it for that section is presumed to be normal code and shouldn't have the extra tab
one sec
no
all of those woorks
just this line
send the error?
is vault_eco_balance_commas a variable
wdym
do you have a variable named vault_eco_balance that you're trying to get?
nope
how do i make a variable
try %player's balance%
set {(variable_name_here)} to (whatever you want to set it to)
so
variable name is supposed to be the placeholder?
You need skript-placeholder addon and the placeholder expression
I got skript-placeholder, Another question what is the expression is supposed to be
in skript
sorta
so variables are used to store data of any kind, numbers, text, etc. so you can use them later
say for example you wanted to store the name of a custom pet, you'd do
set {petname.%player's uuid%} to "Pet 1"
then you could access that variable from inside skript again with
%{petname.%player's uuid%}%
oh ok
I can do this to anything
placeholder "your_placeholder_here"
But don't use for balance
where Can I see all of skript expressions already added?
so I don't have to ask help again
for balance, you can literally just use player's balance (assuming you have Vault and a compatible economy plugin such as BeeConomy)
for placeholders, you need to first set a variable to the value of the placeholder, then show the variable
set {_var} to placeholder "your_placeholder_here" from player
so I can do
set {_gems} to placeholder "Gems" from player
yep! then you can use the variable as you would any other
how do i make it show numbers though
what is it you are referring to?