Duel Script.

By [-DDC-]Darkness on Jan 04, 2008

Eh, like I said, this is a pretty simple, 3 minute job.
It works pretty friggin awesome though.
Yeah, so, in a channel, you highlight the persons nick you're dueling and you right click, and click Duel.

!!!!!!!!!!Duel!!!!!!!!!!
!!!!!!!!!Script!!!!!!!!!
!!!!!!!!!!!By!!!!!!!!!!!
!!!!!!!Darkness!!!!!!!!

Menu nicklist {
  .Duel:{
    /set %opponent $1
    /amsg $me vs $1 <--- Who Will Win?!?!?!?! :O
  }
}
on *:input:*:{
  if ($1 == !win*) {
    /amsg I have triumphed over $1!!!!!
  }
  on *:input:*:{
    if ($1 == !loss*) {
      /amsg I have lost again $1. :(
    }
  }
}

Comments

Sign in to comment.
LucSatise   -  Jan 11, 2008

i can do dialogs i just find that if its possible to do something without them then theres no point using them.

 Respond  
HeatedHeart   -  Jan 10, 2008

some one cant do dialogs..? Also Why Just Nicklist You Could Add A Channel and a $$?\"Opponent\" aswell, Just to give options

 Respond  
LucSatise   -  Jan 05, 2008

i posted one already a couple weeks back that works well but this was a good try.

 Respond  
EL   -  Jan 04, 2008

@ SLS10 Umm What? Dude do you ever make any sense when you comment on others work..huh wait you have a handfull of snippet comments that arent completely in the lower IQ bracket.Like them or hate them but atleast help them if you can other wise stfu with your smart self.@ [-DDC-]Darkness Yeah didnt test yout first snippet that this goes with you should specify the link to the other snippet aswell and i looked at your other snippet the same can be fixed there with the on input.I only used win/loss0 an win/loss1 an reset as am example cause the same applies for the rest here.

on :INPUT:: {
if ($1 == !win0) { /inc %dw1wins | /set %dw1wins | msg # you have won your duel! | msg # %deck1 deck record is: Wins %dw1wins losses %dw1losses }
if ($1 == !loss0) { /inc %dw1losses /set %dw1losses | say You Have Lost Your Duel! | say %deck1 deck record is: Wins %dw1wins Losses %dw1losses }
if ($1 == !win1) { /inc %dw0win /set %dw0wins | say You Have Won Your Duel! | say %deck deck record is: Wins %dw0wins Losses %dw0loss }
if ($1 == !Loss1) { /inc %dw0loss /set %dw0losses | say You Have Lost Your Duel! | say %deck deck record is now: Wins %dw0wins Losses %dw0losses }
if ($1 == !reset) {
unset %deck
unset %deck1
unset %deck2
unset %deck3
unset %deck4
unset %dw0wins
unset %dw1wins
unset %dw1losses
unset %dw2wins
unset %dw2Losses
unset %dw3wins
unset %dw3losses
unset %dw4wins
unset %dw4losses
unset %dw2losses
unset %dw02losses
unset %dw5wins
unset %dw5losses
say All of your decks and records have been reset
}
}
Most ppl prefer to stack things but in this case using | pipes would prolly be best.The pipe just separates the commands so one is triggered after another in the order they are written in.Note i didn\'t use pipes in teh !reset section its just t would be to much of a hassle and a long string.Sorry didnt post this comment on the snippet it goes with but like you said they are used together.Any ways I\'ll test the code later for now thats just what i saw lookin at it real quik.`-.-

 Respond  
SLS10   -  Jan 04, 2008

...Pwned. in the faic.

 Respond  
[-DDC-]Darkness   -  Jan 04, 2008

Oh, woops, I was commenting on the wrong script. lol.
This script is supposed to be connected with my other script - the duel record one. Thats why I did if ($1 == !loss*)

 Respond  
[-DDC-]Darkness   -  Jan 04, 2008

I use the !loss because the specifies which deck it is that got the win / loss. :o If you can fix that part, then by all means, feel free to knock yourself out, man.
That\'s also why I made it 2 different scripts. ><
And yeah, I just learned about the input as 1 thingy last night....I never learned how to do that, though. >
<
Still, thanks for the advice bro.

 Respond  
EL   -  Jan 04, 2008

Well you need to take more then 3 minutes before you post.Reasons why.1) This will not work as it is (error message) on is Unknown Command.And there is no reason for 2 input commands use one input and stack them i will post a working cersion of the code an the changes in explaining momentarily.Number 2) Using the within teh trigger isnt needed its just another character you have to type to trigger the command so nix it from if ($1 == !loss) to if ($1 == !loss) <-- with out the * .Ok now onto the last part,your seting the %opponent as $1 ok so that does set it but the messages wont work for one the identifiers are touiching other characters it wotn work use $+ then other characters i will show you what i mean: This /amsg I have triumphed over $1!!!!! wont work even if you move the !!!\'s away from teh identifier you would haev to be still hightlighting the nickname in the nick list so change that as the var /amsg I have triumphed over %opponent <-- no need to be clicking on a nickname.Other then that maybe useing only msg $chan instead of amsg won\'t bother so many ppl yur call there.I\'m not picky about the / backslashes yur call also they are concidered mess codeing(cough as i typo).Any ways it neat an jsut needs to work here is the codes as i explained above.

Menu nicklist {
.Duel:{
/set %opponent $1
/amsg $me vs $1 <--- Who Will Win?!?!?!?! :O
}
}
on :input::{
if ($1 == !win) { /amsg I have triumphed over %opponent $+ !!!!! }
if ($1 == !loss) { /amsg I have lost again %opponent :( }
}

Put some more time into these an you can make some fun stuff.Keep it up.`-.-

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.