Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I need two scripts to talk to each other

Ted Sullivan
Wanta Be Scriptor
Join date: 3 Dec 2005
Posts: 4
01-01-2006 18:41
I have this bj table and a camping chair and a network script, but I am having problems with trying to get them to talk to each other. What I want is for the blackjack table to tell the camping chair that a bet of $L50, or so and so, has been placed and that the $L per 15 minutes for the camping chair should go up to, let's say, $L 7. I also need the overhead of the camping chair to say something along the lines of:
Ted Sullivan
$L per 15 mins currently at : **.**
Earnings so far : **.**

I also need it where if they stop betting, then the average $L per 15 mins goes down accordingly. I am sure I fogot something. If you got any suggestions as to make it fair to all involved please reply to the thread.
Any help would be appreciated. I have attached the scripts with hope some ppl will help.
Gabe Lippmann
"Phone's ringing, Dude."
Join date: 14 Jun 2004
Posts: 4,219
01-01-2006 18:50
This is a solid concept that I haven't seen in play yet (though granted I don't spend much time in camping chairs or casinos). Camping chairs should pay more if you play at the casino. Yumi, I hope you are paying attention.
_____________________
go to Nocturnal Threads :mad:
Introvert Petunia
over 2 billion posts
Join date: 11 Sep 2004
Posts: 2,065
01-01-2006 19:26
I would like someone to give me a free script so that I can game the dwell statistics to make my casino look more popular so I can make more money. Anyone? No? Bummer. :(
Gabe Lippmann
"Phone's ringing, Dude."
Join date: 14 Jun 2004
Posts: 4,219
01-01-2006 19:29
From: Introvert Petunia
I would like someone to give me a free script so that I can game the dwell statistics to make my casino look more popular so I can make more money. Anyone? No? Bummer. :(


Of course. :D
_____________________
go to Nocturnal Threads :mad:
Ted Sullivan
Wanta Be Scriptor
Join date: 3 Dec 2005
Posts: 4
Not Asking for free scripts
01-02-2006 09:52
If you look i have the scripts, i just need help to make them talk to each other.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-02-2006 10:23
http://secondlife.com/badgeo/wakka.php?wakka=communications

look at llWhisper, llSay and llShout and llListen. Whatever you do use a -ve channel number, you might need to consider llListenRemove too to cut lag.
Gabe Lippmann
"Phone's ringing, Dude."
Join date: 14 Jun 2004
Posts: 4,219
01-02-2006 10:27
From: Ted Sullivan
If you look i have the scripts, i just need help to make them talk to each other.


Have you tried getting them drunk? Or you could send each script a note telling them to meet you at an InfoHub at 3PM. Then they show up, you're not there and they would have to talk to one another. :)
_____________________
go to Nocturnal Threads :mad:
Ted Sullivan
Wanta Be Scriptor
Join date: 3 Dec 2005
Posts: 4
Thank you Eloise :)
01-02-2006 15:39
From: Eloise Pasteur
http://secondlife.com/badgeo/wakka.php?wakka=communications

look at llWhisper, llSay and llShout and llListen. Whatever you do use a -ve channel number, you might need to consider llListenRemove too to cut lag.


Thanks for the info :)
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
01-02-2006 21:49
From: Eloise Pasteur
Whatever you do use a -ve channel number,


Off topic a bit: Is there any advantage to using a negative channel number? I just use really high positive channels for inter-script communication.
Fenrir Reitveld
Crazy? Don't mind if I do
Join date: 20 Apr 2005
Posts: 459
01-02-2006 22:25
No advantage, it's just that avatars can't use the slash command to talk in negative channels. So less chance (?) that you'll collide with some channel someone is using for avatar interaction.

Of course, a relay script easily fixes that, so don't rely upon negative channels entirely to secure communications...
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-03-2006 00:02
Fenrir's right in that avies can't speak on -ve channels. That's why I tend to use them for inter-script communication, although in all honesty high +ve channel numbers are just as likely to be empty.

For me it's more a spam thing than a security thing. If someone REALLY wants to hack your script however it communicates if can just about be done. But if you've got a casino with the betting tables communicating with the camping chairs (whatever I think about the camping chair trend which is a separate rant) then that's probably a lot of chatter going on. Putting it on an out of the way channel makes it less likely that it will spam other people, and equally less likely that it will get spammed - I know of at least one person who remembers and uses 6, 7, 8 and 9 digit channel numbers for various silent commands, hence I tend to use ones that the avies can't chat on just in case.
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
01-03-2006 01:14
PERSONALLY...I'd combine the table and the chair into one object and use link-messages between prims...
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.