APickledWalrus / skript-placeholders

Placeholder integration for Skript.
GNU General Public License v3.0
28 stars 8 forks source link

How to insert skript placeholder inside a PAPI placeholder? #14

Closed HenryRenYz closed 3 years ago

HenryRenYz commented 3 years ago

version: 1.4

Description

Is there a way to get the scoreboard points of loop-entities? PAPI scoreboard extension provides something like %objective_score_buff-cursed_12345678-abcd-1234-abcd-123456789abc% which allows you to get the scoreboard points of an entity with UUID 12345678-abcd-1234-abcd-123456789abc But what can I do if I want to insert loop-entities' UUID into it like %objective_scorebuff-cursed%uuid of loop-entity%%(probably doesn't work) Code:

every 5 seconds: loop all entities: broadcast "%placeholder ""objective_scorebuff-cursed{uuid of loop_entity}"" from loop-entity%" set {_buff-cursed} to placeholder "objective_scorebuff-cursed%uuid of loop_entity%" from loop-entity parsed as number

APickledWalrus commented 3 years ago
loop all entities:
  broadcast placeholder "objective_score_buff-cursed_%uuid of loop_entity%" from loop-entity

That should work? If you’re still having issues let me know 🙂

HenryRenYz commented 3 years ago
loop all entities:
  broadcast placeholder "objective_score_buff-cursed_%uuid of loop_entity%" from loop-entity

That should work? If you’re still having issues let me know 🙂

Can't understand this expression: uuid of loop_entity (custom_buff.sk, line 20: broadcast placeholder "objective_scorebuff-cursed%uuid of loop_entity%" from loop-entity') This doesn't seem to work :d

APickledWalrus commented 3 years ago

Oops that was my typo!

"loop_entity" should be "loop-entity"

HenryRenYz commented 3 years ago

"broadcast placeholder "objective_scorebuff-cursed%uuid of loop-entity%" from loop-entity"

the only text it prints out is "0", which is same result when you fill the with something that doesn't exist at all maybe the plugin thought that "%uuid of loop-entity%" refers somebody's name but not a variable?

APickledWalrus commented 3 years ago

I’m not entirely sure then

HenryRenYz commented 3 years ago

Anyway, thanks for your responding!