Xozes Beginner
Joined: 24 Dec 2000 Posts: 24
|
Posted: Tue Mar 27, 2001 10:28 pm
Music Bot |
This nice little bot watches when you play a song (MateriaMagica). and randomly chooses songs out of a list of songs. It is fairly simple, but has checks to see if the creature is dead (so it wont try to play another song), it can also be modified to throw out random combat spells, as well.. it will also not try to cast while currently casting a spell (in Materia Magica, there is actually a wait during spellcasting/songplaying).
#CLASS {AutoSpells}
#TRIGGER {{You change the focus of your attack to|begins attacking you!|You enter into combat with|You join the melee opposing}} {#VAR songList {bolt|fb|harm|frost|weak|blind};#if (@sp > 400) {#alarm +1 {play %item( @songList, %random( 1, 6))}};#var plays 1}
#TRIGGER {You have completed your song.} {#T+ AutoSpells|Combat}
#CLASS 0
#CLASS {AutoSpells|Combat}
#ALARM -(02|04|06|08|10|12|14|16|18|20|22|24|26|28|30|32|34|36|38|40|42|44|46|48|50|52|54|56|58|00) {#VAR songList {bolt|fb|harm|frost};#if (@plays <= 2) {#if (@sp > 400) {play %item( @songList, %random( 1, 4))};#add plays 1};#T- AutoSpells|Combat}
#TRIGGER {collapses lifeless to the ground.} {#T- AutoSpells|Combat}
#TRIGGER {Your target doesn't appear to be here anymore.} {#T- AutoSpells|Combat}
#CLASS 0 |
|