View Single Post
Re: mIRC: Battle Script v1
Reworkin the script, i'll post a tutorial on how to make my version that includes Levels, Wild monsters, Items and more!

(don't download attached i just need it to work on at home)


// Battle Script 1.0
/resetall {
/set %level 1
/set %exp 0
/set %chealth 100
/set %str 1
/set %MAXHP 100
/me All Char Veriables reset
}
/resetalle {
/unset %elevel
/unset %health
/unset %def
/unset %edmg
/unset %enemy
}
/resetlvl {
/set %level 1
/say Level: %level
}
/resetexp {
/set %exp 0
/say EXP: %exp
}
/resethealth {
/set %chealth 100
/set %MAXHP 100
/say Max Health: %MAXHP
}
/resetstr {
/set %str 1
/say Strength: %str
}
/stat {
/say Level: %level EXP: %exp Health: %cHealth / %MAXHP Strength: %str
}
/sb {
/set -e %health $$2
/set -e %enemy $$1
/me Shapeshifts into Metal VoX and Chalenges $1! | /say 2Health set to3 $2
}
/attack {
/set -e %hit $read(battle/hit.txt)
/dec -e %hit %def
/inc -e %hit %str
/dec -e %health %hit
if (%health <= 0) {
%health = 4PWND!
/set -e %LLL 2
/inc %exp $read(battle/expadd.txt)
}
if (%exp >= 100) {
/dec %exp 100
/inc %level 1
/inc %MAXHP $read(battle/hlthadd.txt)
/inc %str $read(battle/stradd.txt)
/set -e %LLL 1
}
if (%LLL == 1) {
/me Uses the ultimate ban kick attack! | /say Hits for oVeR NInETHOUSSSAANNNNDDDDDDDD | /say ^^LEVEL UP^^ Max Health: %cHealth Str: %str
/set -e %LLL 0
/set %enemy VOID
/set %Health 9999999
else if (%LLL == 2 ) {
/me Uses !!Final Flash!! | /say %enemy was %health
/set -e %LLL 0
/set %enemy VOID
/set %Health 9999999
}
else {
/me $read(weapons.txt) %enemy 3- %hit dmg. 6~3 total HP: %health
/set -e %LLL 0
}
}
}
/Wild {
/set -e %enemy $read(battle/rndenemy.txt)
/set -e %health $read(battle/health.txt)
/set -e %elevel $read(battle/elevel.txt)
/inc -e %elevel $level
/dec -e %elevel $read(battle/lvlc.txt)
%elevel + %level
/dec %elevel $read(battle/lvlc.txt)
/me $read(battle/encounter.txt) a Wild %enemy ! | /say %enemy has %health Health and is Level %elevel | /say is level: %level with %Chealth Health
/set -e %def %elevel
/set -e %edmg %elevel
/inc -e %edmg $read(ehit.txt)
/timer1 0 3 /dec %chealth %edmg
/timer2 0 3 /me is hit by %enemy for %edmg dmg. 2~3 HP: %chealth / %MAXHP
if (%health <= 0) {
/timer1 off
/timer2 off
}
if (%cHealth <= 0) {
/timer1 off
/timer2 off
/me Is Dead!
/dec %level 1
/me has lost 1 level!
}
}

// End Battle Script