#็Help อิอิ

1 messages · Page 1 of 1 (latest)

snow grove
#

on craft:
set {_player} to player
set {_item} to event-result
add lore "Crafted by {_player}" to {_item}

rapid mauve
#

What's the problem.

#

Probably because you have to set line 1 of the lore of the item

#

not just 'add lore'

wind sail
#

Youll also need percents there

#

And why even use the local variables there?

rapid mauve
#

^

wind sail
rapid mauve
#

That, too

snow grove
# rapid mauve Probably because you have to set line 1 of the lore of the item

This ?

on craft:
set {_lore} to "Make By : %player%"
set line 1 of the lore of the item to {_lore}

But :
[02:23:25 INFO]: [Skript] Reloading all.sk...
[02:23:25 INFO]: Line 33: (all.sk)
[02:23:25 INFO]: There's no dropped item in an on craft event
[02:23:25 INFO]: Line: set line 1 of the lore of the item to {_lore}
[02:23:25 INFO]:
[02:23:25 INFO]: [Skript] Encountered 1 error while reloading all.sk! (118ms)

wind sail
#
  1. All.sk”? Its much more organized and faster to separate things into different files
  2. Why not use the expression you had earlier?
snow grove
snow grove
#

this ?

on craft:
set {_player} to player
set {_item} to event-result
set line 1 of the lore of {_item} to "Crafted by {_player}"

wind sail
#

Please use code blocks to make it easy to read your code and indentation

wind sail
rapid mauve
#

Also use percentages in strings

snow grove
#

I'm sorry, but I need to start learning how to write skript.

#
    set {_player} to player
    set {_item} to event-result
    set line 1 of the lore of {_item} to "Crafted by %{_player}%"```
snow grove
rapid mauve
#

Yes

#

By the way, remove {_item} on line 4 and replace it with event-result

#

and then delete line 3

#

Since currently that's only setting the lore of the item, not the actual event-result

snow grove
#
[03:58:24 INFO]: Line 33: (all.sk)
[03:58:24 INFO]:     "Crafted by %{_player}%" is not an item type
[03:58:24 INFO]:     Line: set line 1 of the lore of event-result to "Crafted by %{_player}%"
[03:58:24 INFO]:  
[03:58:24 INFO]: [Skript] Encountered 1 error while reloading all.sk! (105ms)```
#
    set {_player} to player
    set line 1 of the lore of event-result to "Crafted by %{_player}%"```
rapid mauve
#

try set line 1 of lore of (event-result) to ""

snow grove
#
[04:08:08 INFO]: Line 32: (all.sk)
[04:08:08 INFO]:     "Crafted by %the player%" is not an item type
[04:08:08 INFO]:     Line: set line 1 of the lore of event-result to "Crafted by %player%"
[04:08:08 INFO]:  
[04:08:08 INFO]: [Skript] Encountered 1 error while reloading all.sk! (71ms)```
#
    set line 1 of the lore of event-result to "Crafted by %player%"```
wind sail
#

set line 1 of {_item}’s lore to … works for me

snow grove
#
[04:11:28 INFO]: Line 32: (all.sk)
[04:11:28 INFO]:     "Crafted by %the player%" is not an item type
[04:11:28 INFO]:     Line: set line 1 of {_item}’s lore to "Crafted by %player%"
[04:11:28 INFO]:  
[04:11:28 INFO]: [Skript] Encountered 1 error while reloading all.sk! (52ms)```
snow grove
wind sail
#

Skbee is very useful, so I recommend it, but that line doesn’t require an addon

#

Also youd need to replace the variable with the result