#็Help อิอิ
1 messages · Page 1 of 1 (latest)
What's the problem.
Probably because you have to set line 1 of the lore of the item
not just 'add lore'
^
Maybe that they’re only modifying lore for the local var, and not the actual crafted item
That, too
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)
- “All.sk”? Its much more organized and faster to separate things into different files
- Why not use the expression you had earlier?
I apologize for not explaining in detail.
Because I want to make a Skript that makes items crafted by players have lore as to who created them, like in MMO RPG games.
-
this files have one script
-
At first I wasn't sure if it would work or not. So I tried another method.
this ?
on craft:
set {_player} to player
set {_item} to event-result
set line 1 of the lore of {_item} to "Crafted by {_player}"
Please use code blocks to make it easy to read your code and indentation
Also, youd need to set the result to that
Also use percentages in strings
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}%"```
set line 1 of the lore of {_item} to "Crafted by %{_player}%"
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
[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}%"```
try set line 1 of lore of (event-result) to ""
[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%"```
set line 1 of {_item}’s lore to … works for me
[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)```
Use SKbee ?