Toribash
Re: mIRC: Battle Script v1
This script is great! I hope to be battling all of you soon ^_^
Re: mIRC: Battle Script v1
We really need a "Random Entertainment" board for these types of things. I'd sticky it but it's not toribash related. Should I sticky it anyway?

<suomynona> It might kill you, but, that's the worst it'll do
Re: mIRC: Battle Script v1
You silly MUDers... :P
Pope of BnW[Torigod]Lord of WibblesYouTubeToriblog AdminInterface Artist
(,,゚Д゚) -"Become a fan. DO IT."


Hyperboloids of wondrous Light
Rolling for aye through Space and Time
Harbour those Waves which somehow Might
Play out God's holy pantomime

Also, Gubbin is neat.

[SIGPIC][/SIGPIC]
Re: mIRC: Battle Script v1
Originally Posted by HebrewHamr
We really need a "Random Entertainment" board for these types of things. I'd sticky it but it's not toribash related. Should I sticky it anyway?

I'll sticky it :P

Nice tut Zeroth.


[T]
#hi


Re: mIRC: Battle Script v1
This tutorial is so enlightening, suomynona wouldn't tell me diddly-squat about scripting, thanks for actually sharing the knowledge Zeroth.
Re: mIRC: Battle Script v1
Originally Posted by The_guv_na
This tutorial is so enlightening, suomynona wouldn't tell me diddly-squat about scripting, thanks for actually sharing the knowledge Zeroth.

What? You said you had less than half a brain.

(19:38:32) <suomynona> do you have more than half a brain?
(19:38:33) <The_guv_na> Not that...
Squad Squad Squad lead?
The standardization of Toribash Squad roles may have gone too far!
Re: mIRC: Battle Script v1
Originally Posted by suomynona
What? You said you had less than half a brain.

(19:38:32) <suomynona> do you have more than half a brain?
(19:38:33) <The_guv_na> Not that...

Hey! That quote is out of context! I was refering to something else!
Re: mIRC: Battle Script v1
// Battle Script v1
/sb {
 /set -e %enemy $$1
 /set -e %health $$2
 /say Prepare yourself, $1! | /say Health set to $2
}
/attack {
 /set -e %hit $read(hit.txt)
 /dec -e %health %hit
 if (%health <= 0) {
  %health = DEAD!
  if %health = DEAD! /say $+ Oh, this will be fun, %enemy
 }
 if (%health <= 0) /me $read(finishers.txt, p) %enemy  %health
 else /me $read(weapons.txt) %hit dmg ~ total HP: %health
}
// End Battle Script
Tell me what I did wrong, please....

And yes, all the files exist, are in the proper directories, etc. Everything Zeroth set it up to do works, but it won't do the finishers or basically read from anything else if I change "weapons.txt" to target anything else.

I have no idea what's wrong with it.
Re: mIRC: Battle Script v1
// Battle Script v1
/sb {
 /set -e %enemy $$1
 /set -e %health $$2
 /say Prepare yourself, $1! | /say Health set to $2
}
/attack {
 /set -e %hit $read(hit.txt)
 /dec -e %health %hit
 if (%health <= 0) {
  %health = DEAD!
  /say Oh, this will be fun, %enemy
 }
 if (%health <= 0) /me $read(finishers.txt, p) %enemy  %health
 else /me $read(weapons.txt) %hit dmg ~ total HP: %health
}
// End Battle Script
That will work.

[edit] If not, make sure you are saving your script in the script editor (file >save) and then load it again. You may only be editing, not saving, and then running from the older version of the script.