[Battle Scripting] Pre-Battle Message

Discussion in 'Server and Client Scripting' started by SongSing, Jun 14, 2013.

  1. SongSing

    SongSing KILLL

    Joined:
    Jan 2, 2013
    Messages:
    641
    Likes Received:
    191
    PO Trainer Name:
    SongSing
    Hellooooooooo. For those of you who would like to have pre-battle messages along with the current post-battle messages, you can paste this into your battle scripts:

    Code (text):
    1.  
    2. ({
    3. onTierNotification: function (tier) {
    4.     battle.battleMessage(battle.id, "hello");
    5. }
    6. })
    7.  
    You can replace "hello" with whatever you'd like, such as "glhf", etc. Quotes are required. This will send a message as soon as the battle starts. If you have any questions, feel free to ask. Enjoy! ^_^

    Edit: You can find more Battle Script Snippets on the wiki.
     
    Last edited: Jun 19, 2013
  2. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
  3. SongSing

    SongSing KILLL

    Joined:
    Jan 2, 2013
    Messages:
    641
    Likes Received:
    191
    PO Trainer Name:
    SongSing
    Sounds good :3
     
  4. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    I saw what you did, awesome :o