Solved set score with SkRayfall (under players name) (German; English)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Philotastisch

Member
Sep 25, 2019
45
0
6
18
Auf Deutsch:

Hallo,
ich versuche seit ein paar Stunden eine Variable und zwei Wörter (auf Deutsch) anzeigen zu lassen.
Leider ist
Code:
behind loop-player
kein text
Code:
'"&eIn Firma: " behind loop-Player' is not a text (GmbH.sk, line 4: set score "&eIn Firma: " behind loop-Player to {GmbH.e.%loop-player%} for loop-player')
.
Kann mir Bitte jemand dabei helfen?

Für die Personen die sich Fragen warum das Skript GmbH heißt, ich schreibe es für einen Server wo ich Developer bin und man eine Firma gründen soll wo der Firmen Inhaber Mitarbeitern Aufgaben geben kann.

Mit freundlichen Grüßen
Philotastisch

-------------------------------------------------------------

In English:

Hi there,
I have been trying to display a variable and two words (in German) for a few hours.
Unfortunately
Code:
behind loop-player
is not a text
Code:
'"&eIn Firma: " behind loop-Player' is not a text (GmbH.sk, line 4: set score "&eIn Firma: " behind loop-Player to {GmbH.e.%loop-player%} for loop-player')
.
Can someone please help me with this?

For those who are wondering why the script is called GmbH, I am writing it for a server where I am a developer and where I should start a company where the company owner can give employees tasks.
Thanks Google for the translation! ;D

Sincerely yours
Philotastisch
 
you mean you want a scoreboard that display's task's for Admins ?
Edit: give code if you have coded that
 
Last edited:
Here is the Code:

Code:
every 2 ticks:
    loop all players:
        if {gmbh.%loop-player%} is false:
            set score "&eIn Firma: " behind player to {gmbh.e.%loop-player%} for loop-player
            stop
        if {gmbh.%loop-player%} is true:
            bind hologram "&bBesitzt Firma&8 &e%{n.gmbh.%loop-player%}%" to loop-player for 1 ticks offset by 0.0, 3.0, 0.0
            stop

I want to make a line under Name of Players Display Name.
 
Here is the Code:

Code:
every 2 ticks:
    loop all players:
        if {gmbh.%loop-player%} is false:
            set score "&eIn Firma: " behind player to {gmbh.e.%loop-player%} for loop-player
            stop
        if {gmbh.%loop-player%} is true:
            bind hologram "&bBesitzt Firma&8 &e%{n.gmbh.%loop-player%}%" to loop-player for 1 ticks offset by 0.0, 3.0, 0.0
            stop

I want to make a line under Name of Players Display Name.
What addons do you have ?
 
  • Like
Reactions: Philotastisch

Attachments

  • 2020-01-25_21.24.53.png
    2020-01-25_21.24.53.png
    413 KB · Views: 342
you mean something like that ?
yes, but above the head and the hologram should not drag after you if it is possible. because with it
Code:
bind hologram
it is kind of strange when it pops out of the ground and flies up to the place where you want it.
 
yes, but above the head and the hologram should not drag after you if it is possible. because with it
Code:
bind hologram
it is kind of strange when it pops out of the ground and flies up to the place where you want it.
Code:
command /test <text> <player>:
    permission : test.test
    trigger:
        bind hologram "%arg 1%" to arg 2 for 10 seconds offset by 0, 2.3, 0
        if arg 1 is not set:
            send "&3Write what you want have above you!" to player
        if arg 2 is not set:
            send "&3Choose player!" to player
            stop
That's what i coded so far ( you need Holographics Displays plugin to make this script work )
 
Okay, Thanks! I heard that it is also possible to create a hologram with skelett.
Nur i dont know if it can follow a player.
 
Okay, Thanks! I heard that it is also possible to create a hologram with skelett.
Nur i dont know if it can follow a player.
ok so i found out way that that wouldn't follow you
basiclly you spawn invisible armour stand that teleports every 5 ticks
 
Is that so Right?
At my test Server come 3 Errors.

Code:
every 1 ticks:
    loop all players:
        if {gmbh.%loop-player%} is false:
            spawn armorstand at player's location
            add "{Invisible:1b}" to nbt of last spawned armor stand
            set name of last spawned entity to "&eIn Firma: %{gmbh.e.%loop-player%}%"
            wait 1 ticks
            loop all entity in radius 1 around loop-player:
            if loop-entity is armor stand:
                kill loop-entity
            stop
        if {gmbh.%loop-player%} is true:
            bind hologram "&bBesitzt Firma&8 &e%{n.gmbh.%loop-player%}%" to loop-player for 1 ticks offset by 0.0, 3.0, 0.0
            stop
 
Is that so Right?
At my test Server come 3 Errors.

Code:
every 1 ticks:
    loop all players:
        if {gmbh.%loop-player%} is false:
            spawn armorstand at player's location
            add "{Invisible:1b}" to nbt of last spawned armor stand
            set name of last spawned entity to "&eIn Firma: %{gmbh.e.%loop-player%}%"
            wait 1 ticks
            loop all entity in radius 1 around loop-player:
            if loop-entity is armor stand:
                kill loop-entity
            stop
        if {gmbh.%loop-player%} is true:
            bind hologram "&bBesitzt Firma&8 &e%{n.gmbh.%loop-player%}%" to loop-player for 1 ticks offset by 0.0, 3.0, 0.0
            stop
same 3 error's but i fixed 2 of them
ERROR : there is no world in a periodic event if no world is given in the event skript
 
and ?
[doublepost=1579987276,1579986313][/doublepost]
do you have WILDSKRIPT addon ?
if yes try this
Code:
command /test <text>:
    permission : test.test
    trigger:
        set player's tag to "arg 1"
Code:
[21:27:36 ERROR]: 'player's tag' is not an entity type (gmbh.sk, line 4: set player's tag to "&eIn Firma: %{gmbh.e.%loop-player%}%"')
 
Status
Not open for further replies.