Author Topic: onChatMessage v1.1 (by Flaw)  (Read 3778 times)

onChatMessage (v1.1)
(by Flaw)

Description
When a player says any chat message, any bricks within the range of 10 studs (can be changed using the RTB preference) will trigger the input event "onChatMessage". This can be very useful in combination with VCE's lastChatMessage.

Test Report
This add-on has been tested on a default Blockland installation with default add-ons, and worked flawlessly without any errors.

Versions
1.1
  • Fixed VCE compatibility.

Downloads
This add-on can be downloaded by clicking this link.

Installation
Place Event_onChatMEssage.zip in your Add-Ons folder, restart Blockland and enable it in the Add-Ons GUI when starting a server.
« Last Edit: February 03, 2011, 04:10:49 AM by Bauklotz »

Did this Flaw guy test the add on? If so it didn't work Flawlessly.




I tried this with default add-ons on a default Blockland installation, created a 1x1 brick, applied the following event:
onChatMessage -> Client -> chatMessage -> Hi!

Then I moved close to it, and said "...".
Quote from: Chat
Flaw: ...
Hi!

Err.. The link is to Script_ItemNames?
Fixed
« Last Edit: January 13, 2011, 02:59:17 PM by boodals 2 »





Flaw guy

?

Accidental Double-Post Edit:

Installation
Place Script_ItemNames.zip in your Add-Ons folder, restart Blockland and enable it in the Add-Ons GUI when starting a server.

You gotta fix your Add-On post templating.
« Last Edit: January 16, 2011, 08:53:47 AM by MegaScientifical »

Accidental double post. A admit to being a handicap.

The add-on does not work with anything I tried including your example events.
Code: [Select]
OnBotActivated -> Self -> VCE_ifValue "<var:client:lastmsg>" "==" "test" "1 2"
VCE_ifVariableTrue -> Client -> Centerprint "you tested"
VCE_ifVariableFalse -> Self -> cancelevents

Player: test
bot not responding

For one, the second on variable. False is unnecessary.  For two, did you click he not. After Yu said test?

Long time later edit+translation
forget you autocorrect
Quote
For one, the ifVariableFalse is unnecessary.  For two, did you click the bot after you said test?
« Last Edit: November 13, 2011, 03:21:05 PM by Lugnut1206 »

Well, apparantly the problem is that it runs the events before VCE sets the 'lastChatMessage' variable. I'll upload a fix soon.

Version 1.1 has been uploaded.
Quote from: Changelog
Fixed VCE compatibility.

sorta like the ontalk event, which triggers if you say something while touching the brick
also, may i suggest a way to change the radius, being everywhere or limited?