Author Topic: Whatis  (Read 8410 times)

This is a simple mod that allows you to make something of a simple "help index" using the /whatis command

Whatis
Quick script that allows you to set up a /whatis command

Description
Made on request of Regulith

||Listen up as I am only going to say this once.||
In order to get this to work, make a brick. On this brick, use
Onactivate : Self : SetWhatIs : [name] : [description]
and activate it. Now [name] is added to the index and you can say /whatis [name].

Important: do not use spaces in the [name].


This is in server mods as its main purpose is to be a server mod, not an event mod.

Download
Script_Whatis.zip (Last Updated: Sun Jan 18, 2009 8:08 pm)

Installation
Put Script_Whatis.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager

Hm, a tad confusing. But for the most part, very good job!  :cookie:

(First Post!)

Hm, a tad confusing. But for the most part, very good job!  :cookie:

(First Post!)


Get out. Does it automatically detect the name or you have to set it? If not, you should make it do that.

Get out. Does it automatically detect the name or you have to set it? If not, you should make it do that.
What.

Get out. Does it automatically detect the name or you have to set it? If not, you should make it do that.
...
 Cool mod.

What.

Get out was at the first post thing Skeleton did.

Good work though :D

Get out was at the first post thing Skeleton did.

Good work though :D
No, he was responding to the fact that you didn't even read any of the topic and asked a stupid question ;)

No, he was responding to the fact that you didn't even read any of the topic and asked a stupid question ;)
I read it :D

/whatis Love

Baby don't hurt me, don't hurt me, no more.

/whatis Love

Baby don't hurt me, don't hurt me, no more.
I lol'd...

/whatis Love

Baby don't hurt me, don't hurt me, no more.
onactivate : self : setwhatis : love : baby don't hurt me, don't hurt me, no more

onactivate : self : setwhatis : love : baby don't hurt me, don't hurt me, no more


Yup :P

Will have that on every build.

onactivate : self : setwhatis : love : baby don't hurt me, don't hurt me, no more

This is a terrible way for this to work.  I'm not sure I see the point of this entirely, but I've thought up a much better way for this to work.  Note that the following took me less than 30 seconds to think up.

1. Name a brick.
2. Add event to brick: onAskWhatIs -> Self -> answerWhatIs -> [string]
3. When someone types /whatIs [name], it searches for the first brick from any player that has that [name] and returns the answers in the form of [Owner]: [Answer].

Example:

I create a brick called 'love' and add the event onAskWhatIs -> Self -> answerWhatIs -> 'Baby don't hurt me; Don't hurt me no more.'.  Someone runs /whatis love and it replies 'Trader: Baby don't hurt me; Don't hurt me no more.'.

The way you have it now is pretty much bat stuff insane.  It makes no logical sense to do it that way.  You're crazy.

Trader, I've tried looping through bricks before. With larger builds its a drain on the server. Its simple, just make one control brick that sets up all the 'whatis's.