#Help with Skript-Placeholder

1 messages · Page 1 of 1 (latest)

balmy gorge
#

So I want to make a placeholder work in Skript, Like Balance,
and probably make things like custom levels but I need help with the basics on how to make placeholders! Can somebody help me out? I will also use it in my own Scoreboard so if possible thanks!

half rune
balmy gorge
#

on actionbar

#

it sent me errors

half rune
balmy gorge
#

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

half rune
#

one sec

balmy gorge
#

all of those woorks

#

just this line

half rune
#

send the error?

balmy gorge
#

send action bar "&e+$1.50 &8%vault_eco_balance_commas%" to player

#

isnt

#

wait

half rune
balmy gorge
balmy gorge
half rune
balmy gorge
#

how do i make a variable

half rune
#

try %player's balance%

half rune
balmy gorge
#

Oh yes it works

#

thanks

balmy gorge
#

variable name is supposed to be the placeholder?

orchid charm
#

You need skript-placeholder addon and the placeholder expression

balmy gorge
#

in skript

half rune
# balmy gorge variable name is supposed to be the placeholder?

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%}%

balmy gorge
#

oh ok

orchid charm
#

But don't use for balance

balmy gorge
#

I can use for something else like

#

statistic

#

player

#

vault rank

orchid charm
#

Depends

#

Not for rank. Skript has an expression for it

balmy gorge
#

where Can I see all of skript expressions already added?

#

so I don't have to ask help again

orchid charm
solemn cove
#

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

balmy gorge
#

set {_gems} to placeholder "Gems" from player

solemn cove
#

yep! then you can use the variable as you would any other

balmy gorge
solemn cove
#

what is it you are referring to?

balmy gorge
#

How do I make it so if i have that required quantity for pets

#

or

#

I want to give myself

#

gems

#

like it becomes

#

78 gems

#

1.9k gems