Loading map from PNG

  • 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.
Banging my head on a wall now lol

So I have got a script with no error but it still does not make sense

on rightclick with stick:
set {_map} to map
set data value of {_map} to 167
message "%{_map}%"

When right-clicking with a stick I get "empty map"
 
What did you expect to get?
 
What did you expect to get?
(Sorry if I am being thick)

still trying to get the drawing on the maps from an image file
nothing seems to work so I went back right to the start to try and see if its the ID of the map not being set

I would expect it to tell me that it was map 167 or something or have I got the wrong end of the stick (no pun intended)
 
Well as far as I know Skript doesn't show map ID's when parsing them as texts. If I were you I would send the code for drawing the image on the map, even though it doesn't work.
 
I am soooo close

So I have working

on map:
set {_map} to event-map
set scale of map {_map} to FARTHEST
broadcast "%scale of map {_map}%"
manage skellett map {_map}
if map {_map} is being handled by skellett:
set {_image} to image from the file path "plugins\maps\test.png"
draw image {_image} on skellett map {_map}
draw text "&aSexy" at 44, 30 on skellett map {_map}
draw cursor "BLUE_POINTER" pointing 1 at 50, 50 on skellett map {_map}
loop all players:
send map {_map} to loop-player

But what I want to do is manage old maps by ID

command /genmaps:
trigger:
manage skellett map:167
# etc

But no matter how I word that line I get "Can't understand this condition/effect: manage skellett "map:167" (maptest.sk, line 23: manage skellett "map:167"')"

Tryed
map 167
map map 167
map:167

Someone please save me :emoji_grinning:
 
Well have you tried giving the item with data value (using the code I sent before) and give that item to the player?
If that doesn't work, why do you only want to use map 167?
 
Yes (sorry I did mean to put it in my post)

command /genmaps:
trigger:
set {_map} to map
set data value of {_map} to 167
set scale of map {_map} to FARTHEST
manage skellett map {_map}
set {_image} to image from the file path "plugins\maps\test.png"
draw image {_image} on skellett map {_map}

no errors but it did not work

I have maps up all over my server and I update them with this command, 167 is just the test one I have loads
 
Well I dont really think you have to use map 167, I dont see why you want to. If you really want to use that map ID, why?
EDIT: also try adding the set datavalue after manage map
 
Nope still not wokring, is there any way of setting {_image} based on the map I am holding?
 
Yea, but that gets pretty complicated
[doublepost=1550045973,1550041212][/doublepost]Does it work if you forget about the map ID's?
 
Status
Not open for further replies.