HELP: new custom editor item for NOTES (clone of script)

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

HELP: new custom editor item for NOTES (clone of script)

Post by Komag »

I figure I could clone a script_entity and just change the icon to a new custom one, something like the N for the notes on the in-game automap. Then I can place my big bright N's in the editor and put notes to myself in them (I would just comment out every line so no scripts try to run)

How do I do this???

How do I make a custom editor icon and how do I assign it a number so I can do something like this:

Code: Select all

cloneObject{
name = "note_entity",
baseObject = "script_entity",
editorIcon = ??,
}
or should I do a defineObject?
Finished Dungeons - complete mods to play
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Komag »

I see in the objects.lua that script_entity editorIcon is 148. But where are these icons? I can't find them in the asset pack textures or anywhere

(maybe I'll use the secret icon, 76)
(I'd like to use the starting_location icon, the arrow, but it's not listed in objects.lua)
(maybe stairs_up, 44)
(or healing crystal, 60)
Finished Dungeons - complete mods to play
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Grimwold »

I was wondering this too earlier today too, when I was picking an icon for anti-magic zones... I even took a look in the game subfolder of Steam, to no avail. I have a sneaky suspicion they are hard coded into the editor.

EDIT - oh just found the arrow... it's editorIcon = 32,
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Komag »

how/where did you find that?
Finished Dungeons - complete mods to play
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Grimwold »

Komag wrote:how/where did you find that?
It was the first entry in objects.lua in the asset pack (v2)

Code: Select all

defineObject{
	name = "party",
	class = "Party",
	editorIcon = 32,
}
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Neikun »

Fun Fact: The starting location is the object "Party"
EDIT: Ninja'd as I went to get supper haha
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Komag »

ah, thanks, I'll probably use that then, since it's so extremely rarely used elsewhere and also stands out pretty well
Finished Dungeons - complete mods to play
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Neikun »

But will it show up on the minimap as an arrow. I think not. D:
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Komag »

not if it's a clone of a script item, will it? they don't show up on the min map
Finished Dungeons - complete mods to play
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: HELP: new custom editor item for NOTES (clone of script)

Post by Grimwold »

If you do want something that shows up on the automap, there is a map_marker object which you could use or clone.

EDIT - but of course you can't type notes in that.
Post Reply