Jump to content

Avex Axon

Resident
  • Posts

    18
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Wonder if anyone can help. I had a script working a couple of years ago, for a gaming setup..... a keyword spoken in sentence deleted an object set out inworld. The problem is that Ive lost the original, and can only find the one below. It works fine if I say "blue" inworld. Wat I REALLY want to be able to do, is say a sentence, and the script picks up the word "blue" as part of it. ie.... "the sky is very blue today". If anyone can help, I;d be really grateful. key opponent; default { state_entry() { llListen(-7545676,"","",""); } listen(integer channel, string name, key id, string m) { if (channel == -7545676) { if ((key)m != llGetOwner()) { llSay(0, m); opponent = (key)m; llListen(0,"",opponent,""); } } else if (channel == 0) { if (llSubStringIndex(llToLower(m), "blue") > -1) llDie(); } } }
  2. Just had to pop back and say that amidst all the dramas etc that so often punctuate our SL experiences, things happen that simply serve to remind you that there are so many really GOOD things and people about this place. I'm inworld, playing with the scripts trying to get em to work.....get a tp offer from Darkie, and he has not only played with the code, but gives a demonstration of how to do it...and a copy of the working scripts. Won't take any recompense.....simply points out that HE was helped when he started here. I'll do the same the first time someone comes to ME looking for help. Once again Darkie.....BIG thanks.......and Void too for your input.
  3. Ok.....popped the control script into a box......then the delete script into another. Edited delete script to use *blue* as a code word in the:l lListen(0,"",opponent,""); section. Dragged a friend over and had them click the control box, then say *the sky is blue" in chat. Nothing happened. re-edited the script and placed the *blue* in the if (m=="")llDie(); section....and still nothing. I'll keep playing around with it and see if I can make it happen and keep you updated as I go.......many thanks again for taking the time and effort to help.
  4. I'm going to jump inworld and give it a go.....I'll keep you both posted and thanks again!
  5. I really need to spend some quality time over the summer learning the various commands. I can come up with scenarios, but the paths and logistics defeat me! This forum and the willingness of the more expert people, is an absolute godsend! Do you mean in effect, that using the delete script from before....ie...: default { state_entry() { llListen(0,"",llGetOwner(),""); } listen(integer channel, string name, key id, string m) { if (m=="delete")llDie(); } } I would need to add a line that would tell it to listen to an avatar's key from a centrally placed control box, and that the control box itself would then have a script which has recorded the opponents key (on touch) and is *waiting* to tell that key to the *box* if and when the correct word is used by the opponent? Sorry to be think here......it's a little like algebra..once it sinks in, you have a EUREKA moment!!!
  6. Notes what Minotuar says....... Right....so a *control box* script........that is definitely doable, and would add to the scenario in any case. At this stage, I'll happily hold my hand up to lack of ability beyond cutting and pasting, and commission a system if I can find someone to do it! Grins Big thanks (and just re-read your post......succinctly put and absolutely spot on)
  7. ah....that may be possible. So if Player A put Player B's avatar key......in the right place in the script, popped that into the box, and placed it out....then when Player B said the correct word, Player A's box would delete? Hope that is right......and thanks for suggesting!
  8. I think its one of those things thats always difficult to explain......grins.....you have it so clearly in your mind, you forget that it isn't as simple as it may appear once you try to explain! Basically, two opponents meet in an arena. The meeting is set up ahead, through challenge. Each player has a number of boxes.......which they place out IN the arena. Each players boxes will delete themselves if a particular word is spoken by the opponent.. The players take it in turns to speak....(it's a role play setting)....... The winner is the one who deletes his opponents items first. The objects can be anything containing the script......and the number OF objects is dependent on how well the player has performed. ie if he wins 3 contests, he gains the right to add an additional object. So Player A, more experienced, may have out 5 boxes.....whilst Player B, less experienced, may have out only 3. In effect it's a variation on Battleships.......but using words within sentences to win, by destroying opponets defences (boxes) There are only two players. And the *delete* command doesn't have to be colours...I was simply using that as an example. It can be any word I put into the script as it's *delete* command. It's the question of how to script so as to be able to delete an opponents boxes, as opposed to one's own. Fingers crossed that this now makes sense..
  9. thats the area that I am not sure of. I wasn't sure if it could be as simple as having a script in Player A's boxes, that recognises a similar script in ANY opponets boxes. Or whether the players need to wear a generic attachement, which tells opponents boxes to *listen* for their *delete* command word
  10. Hi Darkie....thanks for analysing it. Basically it's a case of for example Player A has 3 boxes, which will delete on the words *silver*, *gold* and *bronze*....whilst Player B has 3 boxes deleting with the words *blue*, *red* and *white*. I'm trying to find a way that Player A could say *the sky was blue*, and Player B's *blue* box vanishes. This also supposes that Player A and Player B are unknown to each other apart from standing in the arena to *play* Hope this helps?! Thanks again
  11. Darkie Minotaur and Rolig Loon, very kindly helped me with a *die* script allowing me to specify a particular word which when used in a sentence would delete an inworld object. With this in mind, it set me to wondering if there is a way to use a similar script to delete an OPPONENT’S objects? If this were possible, I realised it would make the game I’m trying to set up on my sim FAR easier! Any help as always would be hugely appreciated!
  12. Perfect! Thanks again........you guys rock
  13. Great! I'll give it a go and get back to you.....as for sim lag, it should be ok, as its to be used in very specific time limited tournaments. Big thanks
  14. Hi Guys......had great response for a dice script I was trying to throw together, so have popped back in case anyone can help suggest methods for a particular use of a chat die script. As I said in the other thread, I'm new to scripting, and have tried taking the following apart to get to what I need with little success....the script I am using is the basic free one as below: //This is to delete objects by chat. Place this script in an object you wish to have self delete. Say or Shout (hold ctrl while hitting enter) the word delete, and your object will self delete. //remove the 123 to be able to use this script. Just delete the numbers and make sure running in the lower left is checked and hit save. //Make sure you save a copy of this script and all others in this package before removing the 123. default { state_entry() { llListen(0,"",llGetOwner(),""); } listen(integer channel, string name, key id, string m) { if (m=="delete")llDie(); } } What I am trying to do, is place it in an object whereby the command word (in the above it is "delete", can be spoken as part of a sentence and still have the same effect. I've found that if I change "delete" to "looks closely at the box and wonders where the delete button is", and then say the exact sentence in open chat, it does indeed delete. What I'm trying to get however, is a more natural way of having a one word command, which can be used ANYWHERE in any sentence, rather than as a one word command It may be that it isn't possible within the parameters, and if someone can tell me that, I can stop trying to get it working...and if someone can tell me HOW it can be done, I can stop working and buold an effigy to them!! Thanks in advance Avex
×
×
  • Create New...