Scripts: Preliminary Phase: p1:script to be done when card is usable again/every prelim phase bf1-5,item1-5 p2:Global effects (other player)bf1-5,item1-5 Offensive Phase: o1:script to be run when card comes out of your hand limit hand1-5 o2:script to be run from the battlefield limit bf1-5, item1-5 Defensive Phase: d1:Global effects (Attacking Player)bf1-5,item1-5 d2:Global effects (Defending Player)bf1-5,item1-5 d3:interrupt abilites (effects only) limit bf1-5, item1-5, hand 1-5 d4:script to be done for each attacking creature from get variable, limit bf1-5 d5:Use effects (Attacking Player) from get variable, limit item1-5 bf1-5 d6:Use effects (Defending Player) from get variable, limit item1-5 bf1-5 d7:script to be done for each defending creature from get variable, limit bf1-5 Status meanings: 0: unusable 1: usable 2: attacking 3: using effect 4: attacking and using effect type: monster/item/spell attribute1: none elven humanoid mechanical beastial reptillian amphibious mythical attribute2: none flying fire water earth air light dark ranged Battlelog array: $row[0]:logid $row[1]:battleid $row[2]:timestamp $row[3]:p1id $row[4]:p2id $row[5]:turn $row[6]:phase $row[7]:p1leaderhp $row[8]:p2leaderhp $row[9]:description $row[10][0]:p1hand 1 card number $row[11][0]:p1hand 2 card number $row[12][0]:p1hand 3 card number $row[13][0]:p1hand 4 card number $row[14][0]:p1hand 5 card number $row[15][0]:p1bf 1 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[16][0]:p1bf 2 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[17][0]:p1bf 3 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[18][0]:p1bf 4 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[19][0]:p1bf 5 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[20][0]:p1item 1 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[21][0]:p1item 2 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[22][0]:p1item 3 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[23][0]:p1item 4 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[24][0]:p1item 5 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[25][0]:p2hand 1 card number $row[26][0]:p2hand 2 card number $row[27][0]:p2hand 3 card number $row[28][0]:p2hand 4 card number $row[29][0]:p2hand 5 card number $row[30][0]:p2bf 1 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[31][0]:p2bf 2 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[32][0]:p2bf 3 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[33][0]:p2bf 4 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[34][0]:p2bf 5 card number [1]:status [2]:attack [3]:defense [4]:attribute1 [5]:attribute2 [6]:type1 [7]:type1power [8]:type2 [9]:type2power [10+]:targets $row[35][0]:p2item 1 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[36][0]:p2item 2 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[37][0]:p2item 3 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[38][0]:p2item 4 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets $row[39][0]:p2item 5 card number [1]:status [2]:allow [3]:exclude [4]:power [5]:placeholder [6]:placeholder [7]:placeholder [8]:placeholder [9]:placeholder [10+]:targets