Author Topic: /Inv(estigating) your surroundings for the purpose of worldbuilding  (Read 950 times)

I'll try to make the explanation as simple as possible - a way to set a detailed description of a specific brick.

Let's say it's an event, self > setDescription, and it's parameters were the description itself, and the radius in whatever measurement you have to been in order to be able to "see" the brick.

Hypothetical situation, you want to set it up so saying /inv would spit out the description of each brick within a 60 stud radius. One specific tree brick's description is "an oak tree with dying leaves", so it would say in your client's chat "You see an oak with dying leaves".

Long story short, I'd love an easy way to set up a way to give the world some flavor text without being intrusive. I know this is possible, I just don't know how to do it :z

that's actually incredibly easy, but how would the event activate?

that's actually incredibly easy, but how would the event activate?
/inv, I think
I think it might be better to have an onInspect trigger which you can then fire a client chat message at

Did vce not used to have a onlastmessage output? Using that and zones should work no?

what if you used the event when you look at something, it displays a brief bottom print

Unless it's like Trogtor suggested, I see no point in willingly getting your chat spammed.
« Last Edit: January 27, 2016, 10:39:32 AM by jes00 »

Or just make the event set the brick variable (something like 'desc'), and get the variable if it exists and if it is within 60 studs of the player

what if you used the event when you look at something, it displays a brief bottom print

And in regards to that, wasn't there a onGaze event?
Maybe work with that.

Alternatively a Examine item that doesn't show up in player's hands would be nice as well, and it activates the same as other item activations work (See: Pickaxe tools, RPG tools etc.), but from a distance, without any special animations or anything.



As far as I know the major issue with onGaze was that the player always shot out raycasts to check if it hits any brick like that, but on the other hand it could be also done to be limited only while holding the "Examine" tool.

onGaze: http://forum.blockland.us/index.php?topic=192070.0
« Last Edit: January 27, 2016, 10:16:43 AM by LeetZero »

like onGaze > client > bottomPrint > [ An old rock with some green moss. ] [ 1 ]

that's actually incredibly easy, but how would the event activate?

just through the command /inv

It's not what you asked for, but you might find some use in this mod, it has an 'examine' tool which has an event to go with it.

Unless it's like Trogtor suggested, I see no point in willingly getting your chat spammed.
I think the idea is more like the command prints just one message, with a list of all the things in the area
which is why the event is "setDescription > [description]" and not "onInvestigate > chatMessage"
so if you had two bricks, one with the description "an oak tree with dying leaves" and one with "a rusty old car" you'd get "You see an oak tree with dying leaves and a rusty old car."
the initial event could be activated by whatever. like the events for turning a brick into a zone brick, just leave it up to the eventer to make sure it's activated when necessary
« Last Edit: January 28, 2016, 04:49:26 PM by Foxscotch »

I think I recall there being a magnifying glass addon somewhere with an onInspect input that triggers when you click on the brick with the glass.