people playing: 108, servers online: 38, games played: 142,000,000 Top Player: Money

  Toribash Community » Help » Tutorials
Register FAQ General Rules Community
Reply
 
Thread Tools Display Modes
Old May 6, 2007   #11
Capt_Zeroth
Member
 
Brown Belt
Join Date: Jul 2006
Posts: 213



Re: mIRC: Battle Script v1
Yay! I'm back and running!
Capt_Zeroth is offline   Reply With Quote
Old May 7, 2007   #12
@Chozo
NON-EXISTING!
 
6th Dan Black Belt
Join Date: Feb 2007
Posts: 2,082
Clan: spirit



Re: mIRC: Battle Script v1
This script is great! I hope to be battling all of you soon ^_^
Chozo is offline   Reply With Quote
Old May 7, 2007   #13
>Hamr
is always wrong.
 
10th Dan Black Belt
Join Date: Sep 2006
Posts: 2,612
Clan: bncy



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
Hamr is offline   Reply With Quote
Old May 7, 2007   #14
Hamster
 
Master Belt
Join Date: Oct 2006
Posts: 3,041
Clan: NO



Re: mIRC: Battle Script v1
You silly MUDers... :P
Pope of BnW • [Torigod] • Lord of Wibbles • YouTube • Toriblog Admin • Interface 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]
Hamster is offline   Reply With Quote
Old May 7, 2007   #15
?ishi
nanaaaa nanananana na na
 
Master Belt
Join Date: Aug 2006
Posts: 5,688
Clan: [T]



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


ishi is offline   Reply With Quote
Old May 7, 2007   #16
Guest
 



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.
  Reply With Quote
Old May 7, 2007   #17
+suomynona
Banning Icky from Wibbles would be a crime against nature.
 
Toxic Belt
Join Date: Jan 2007
Posts: 5,934
Clan: spirit



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...
User title may be a victim of recent outsourcing endeavors.
suomynona is offline   Reply With Quote
Old May 7, 2007   #18
Guest
 



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!
  Reply With Quote
Old May 8, 2007   #19
ManBreakfast
NON-EXISTING!
 
2nd Dan Black Belt
Join Date: Aug 2006
Posts: 1,444



Re: mIRC: Battle Script v1
Code:
// 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) * ManBreakfast $read(finishers.txt, p) %enemy %health else * ManBreakfast $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.
ManBreakfast is offline   Reply With Quote
Old May 8, 2007   #20
Capt_Zeroth
Member
 
Brown Belt
Join Date: Jul 2006
Posts: 213



Re: mIRC: Battle Script v1
Code:
// 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) * Capt_Zeroth $read(finishers.txt, p) %enemy %health else * Capt_Zeroth $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.
Capt_Zeroth is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:36 PM.




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game