Jump to content
EnCore Mayne

Chat to Channel 1

You are about to reply to a thread that has been inactive for 65 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

i run Francis Chung's Franimation AO. by manually chatting into channel 1, as such: "/1 ao off" or "/1 ao on" i can toggle its status. all good and fine BUT i'd like to script a HUD that automates the manual input. unfortunately, the llSay(1,"ao off"); from the HUD touch event does nothing. i've tried llRegionSay, and llOwnerSay, and llInstantMessage to no avail.

is there a code i can invoke that will simulate the manual chat?

Share this post


Link to post
Share on other sites
1 minute ago, EnCore Mayne said:

tried...failed

sorry about that

i forgot that a scripted object can't listen to itself

a way might be to trigger it with a gesture

  • Like 1

Share this post


Link to post
Share on other sites

well, the whole point in making the HUD was so i could toggle the ao on and off with a mouse click. i suppose a single keystroke pair might suffice tho. i'll try that if i can't get anything to speak to the ao script.

i went into the ao script and it's way too complicated for me to discern what is going on, especially when its listen event to turn it on and off has this integer listenRelay = 0x80000000; for the listen channel.

Share this post


Link to post
Share on other sites
Posted (edited)

a quick hack of the Franimation script

replace the touch_start code with this, which is copypasta from code in listen event. I haven't tested it but hopefully should be ok fingers crossed

touch_start(integer num)
{
   if (animOverrideOn)
   { // turn it off
     llSetTimerEvent( 0 );
     animOverrideOn = FALSE;
     startNewAnimation( "", noAnimIndex, lastAnimState );
     llInstantMessage( llGetOwner(), "Franimation override off." );  
   }
   else
   {  // turn it on
     llSetTimerEvent( timerEventLength );
     animOverrideOn = TRUE;
     if( gotPermission )
        animOverride();
     llInstantMessage( llGetOwner(), "Franimation override on." );
   }
}

edit add:

am assuming we are talking about this script here:

https://www.outworldz.com/cgi/freescripts.plx?ID=46

 

Edited by Mollymews
  • Thanks 1

Share this post


Link to post
Share on other sites

Gestures will work, just define 2 for on and of and assign them to keys

The AO most probably filters by the owners uuid. In this case a scripted object doesn't have your uuid and can't send commands to the AO.

If the AO script is no mod it can be changed to listen to you and your objects.

Share this post


Link to post
Share on other sites
44 minutes ago, Mollymews said:

a quick hack of the Franimation script

replace the touch_start code with this, which is copypasta from code in listen event. I haven't tested it but hopefully should be ok fingers crossed


touch_start(integer num)
{
   if (animOverrideOn)
   { // turn it off
     llSetTimerEvent( 0 );
     animOverrideOn = FALSE;
     startNewAnimation( "", noAnimIndex, lastAnimState );
     llInstantMessage( llGetOwner(), "Franimation override off." );  
   }
   else
   {  // turn it on
     llSetTimerEvent( timerEventLength );
     animOverrideOn = TRUE;
     if( gotPermission )
        animOverride();
     llInstantMessage( llGetOwner(), "Franimation override on." );
   }
}

edit add:

am assuming we are talking about this script here:

https://www.outworldz.com/cgi/freescripts.plx?ID=46

 

perfect! works a charm.

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, EnCore Mayne said:

unfortunately, the llSay(1,"ao off"); from the HUD touch event does nothing. i've tried llRegionSay, and llOwnerSay, and llInstantMessage to no avail

This would hint to the AO listening only to the avatar. Eg. llListen(llGetOwner);

Gestures are your only option unless you can change the AO script. 

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 65 days.

Please take a moment to consider if this thread is worth bumping.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...