Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:23:58 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by 314piwm
[Today at 10:21:04 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Site Author : Topic: Barons 8Ball Random Message Script  (Read 2731 times)
0 Members and 1 Guest are viewing this topic.
March 05, 2006, 04:05:16 AM
Lord Of Spleens
Administrator
Teh Uberleet
*
User No : 166
Posts: 2951
  • 0 credits
  • View Inventory
  • Send Money To Baron
  • Location : Australia
    Badges? We dont need no stinkin' badges!
    • View Profile
    THIS SCRIPT AND ALL DERIVATIVE WORKS ARE COPYRIGHT OF REDEEMER GAME STUDIOS UNLESS THEY ARE USING ECLIPSE ENGINES. ITS USE IS OPEN TO ALL USERS OF ECLIPSE ENGINES ALONG WITH THE RIGHT TO EDIT IT FREELY. ANY OTHER ENGINES / GAMES REQUIRE APPROVAL FOR USE. THIS MAY NOT BE POSTED ON OTHER BOARDS.

    Used to call random messages from a .ini file. Follow the instructions cant go wrong.

    Add this above the line
    Case "/bell"

    Quote


    Case"/8ball"
    Call random(index)
    Exit Sub



    Change this to the /command you want players to type to use your script. You can also call random.ini by using scripted tiles etc.

    At the very bottom of your main.txt, add this

    Quote


    Sub random(index)
    Dim randomiser
    Dim max
    Dim message

    max = Getvar("random.ini", "index", "total_messages")

    randomiser = Int((Int(max) + 1) * Rnd) + 0

    If randomiser = 0 Then
    randomiser = 1
    End If

    message = Getvar("random.ini", "messages", Int(randomiser) )

    Call Playermsg(index, message, 10)

    End Sub



    Change this to the name of your .ini you will be drawing messages from

    Create your random.ini and add inside it:

    Quote


    [INDEX]
    total_messages=5

    [MESSAGES]
    1=No
    2=Maybe
    3=Yes
    4=Perhaps
    5=Dance like a chicken while juggling midgets




    This number is your total number of messages starting at 1

    These are the possible responses it can give.

    Hope you enjoy the 8ball random message script. enjoy.
    Logged


    Apparently ICT thinks that:
    [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ]

    If I'm only pissing 1 in 50 people off, I don't think that is too bad at all :D
    March 05, 2006, 07:35:38 AM
    Member
    **
    User No : 107
    Posts: 51
  • 0 credits
  • View Inventory
  • Send Money To The Wise Fool
  • Location : If you knew, you would be amazed and horrified at the same time
    • View Profile
    I was trying to do something similar to that, but rather than it being a message, I wanted to give a random item, once.  Thanks Baron :D
    Logged


    ^
    Add this in your Sig if you use Eclipse! Show your Support!
    March 05, 2006, 05:18:22 PM
    Anonymous
    Guest
    Hrmmmm would be a fairly simple matter to modify this scripts framework to get it to give random items, give it a try :)
    Logged
    March 05, 2006, 05:28:30 PM
    The Real Slim Shady
    Veteran
    Advanced Eclipser
    *
    User No : 270
    Posts: 1730
  • 8 credits
  • View Inventory
  • Send Money To [BS] Pickle
    • View Profile
    More useless yet entertaining scripts from Baron :)
    Logged

    gentlemen, you can't fight in here! This is the War Room!
    March 05, 2006, 09:11:01 PM
    Active Member
    ***
    User No : 282
    Posts: 396
  • 0 credits
  • View Inventory
  • Send Money To n0madic0debc
  • Location : Lost somewhere dont know, NYC
    • View Profile
    the fun part about scripting having fun with it. Im looking for a way to do the random item thing.  :lol:
    Logged


    March 05, 2006, 09:55:12 PM
    Anonymous
    Guest
    Guest is Baron here :)

    The random item would need a few more fields in your ini for each entry :

    ie

    1_num:
    1_val:
    1_dur:
    1_cur:

    and the script would just give the item the same way it calls a message only loading from those four fields, you should also add checks for free inventory space though.
    Logged
    March 13, 2006, 03:14:45 AM
    Active Member
    ***
    User No : 223
    Posts: 105
  • 0 credits
  • View Inventory
  • Send Money To mmaatteeoo2003
  • Location : london
    • View Profile
    • WWW
    how do you do this with scipted tile :P
    Logged

    MáTéO RóMéRó BóRrÉtT
    March 13, 2006, 04:59:54 AM
    Lord Of Spleens
    Administrator
    Teh Uberleet
    *
    User No : 166
    Posts: 2951
  • 0 credits
  • View Inventory
  • Send Money To Baron
  • Location : Australia
    Badges? We dont need no stinkin' badges!
    • View Profile
    put the line

    Call random(index)

    under a new case in your sub scriptedtile(index,script)
    Logged


    Apparently ICT thinks that:
    [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ]

    If I'm only pissing 1 in 50 people off, I don't think that is too bad at all :D
    March 13, 2006, 05:32:17 AM
    Active Member
    ***
    User No : 223
    Posts: 105
  • 0 credits
  • View Inventory
  • Send Money To mmaatteeoo2003
  • Location : london
    • View Profile
    • WWW
    Quote from: Baron
    put the line

    Call random(index)

    under a new case in your sub scriptedtile(index,script)


    k I wasn't sure if you had to do diffent commands :P I am thinking of doing a fontun telling tabel and you knoe that thing.
    Logged

    MáTéO RóMéRó BóRrÉtT
    March 13, 2006, 08:38:22 AM
    Lord Of Spleens
    Administrator
    Teh Uberleet
    *
    User No : 166
    Posts: 2951
  • 0 credits
  • View Inventory
  • Send Money To Baron
  • Location : Australia
    Badges? We dont need no stinkin' badges!
    • View Profile
    well, if you want it to play messages other then those in the 8ball.ini you'd need to change the way the script handles certain stuff

    just changing all the 8ball.ini references to something different would work though I think.
    Logged


    Apparently ICT thinks that:
    [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ]

    If I'm only pissing 1 in 50 people off, I don't think that is too bad at all :D
    April 12, 2008, 11:49:47 AM
    Member
    **
    User No : 3563
    Posts: 96
  • 0 credits
  • View Inventory
  • Send Money To IrunoHatake
    • View Profile
    • WWW
    how would you go about the random item thing but making only like once a day? that would probably need timers and stuff and I almost never keep my server up for more than a hour so it would be kinda hard. any ideas?

    also why is it that now I like always talk in old posts? ???
    Logged

    Game Creater Of the brand new and improved, Iruno Online Chronicles.
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.282 seconds with 29 queries.