(Script) Eventscripts Empires API

Discussion in 'Mapping' started by Omega_K2, Jun 9, 2009.

  1. Omega_K2

    Omega_K2 Member

    Messages:
    343
    Likes Received:
    0
    Trophy Points:
    0
    So I've deceided to make a post in this board to announce my empires api which mainly provides some convience functions and helper functions around some net work classes.
    As of now I've only been putting stuff together without any massive tests which results in an ALPHA release. As of now it only supports Eventscripts Python, however I'll add ESS support later.

    Eventscripts Empires API Version 0.10 Alpha can be downloaded here:

    Eventscripts Script Thread

    If you find any bugs (which you are likly to find as this is majorly untested :P) please post them here or in the es board.

    About ES:

    Since eventscripts appears to be easier or at least less complicated then other scripting plugins I also want to encourage people to pick up eventscripts python. With eventscripts py you not only get the features of eventscripts (and backwards support for "old" and "slow" ESS scripting), but also the power of python and it's massive standard libary allowing you to create complex scripts and picking up a real progamming langauge.

    Does it even work with Empires?

    Yes! (Windows at least :) )

    If you beleive for some reason it wouldn't be working with Empires, I need to say that g4tc / emp4all / napalm's funhouse runs eventscripts for a few months now with a few scripts without having any great es-related issues (except for Trickster overflowing the server by setting resources into billions :P).
    Also many of our server features (!ri, !kill, !us, the disconnect messages, etc) are eventscripts.

    Need help with es?:


    If you have problems with eventscripts (scripting, installation issues) feel free to ask in the eventscripts board as the users are usually pretty nice and willing to help and support you. I probably can't answer you as I am usually busy with other things.
    Also you can join the #eventscripts channel on irc.gamesurge.net.



    PS.: If you insist to flame about eventscripts or don't want to provide anything constructive to this thread please don't post (and if you post, kill yourself afterwards)

    PPS.: I want a scripting forum :[
    PPPS.: Thanks to CB for new events :)
     
    Last edited: Jun 9, 2009
  2. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    so where can i find information on learning eventscript python?

    ps: also could you explain roughly what i can do and change with this?
     
  3. Omega_K2

    Omega_K2 Member

    Messages:
    343
    Likes Received:
    0
    Trophy Points:
    0
    That was...fast...your speed amazes me blizzered :D

    If you want to learn python, you can go here (I recommend 2.x branch as ES uses 2.x branch and 3.x branch has syntax changes (and is slower at the mo)):
    http://www.python.org/doc/2.6.2/tutorial/index.html

    I recommend downloading IDLE for learning python:
    http://www.python.org/download/releases/2.6.2/
    (You might want to download 32bit IDLE instead of 64 bit as there are very few custom libarys avaible in 64bit)

    That's a good site to get started with ESP:
    http://python.eventscripts.com/pages/Main_Page

    Well, as there are many possibilites it's hard to give a overview. I'll try to give some examples:

    You can spawn entities and set thier prorties - you could create explosions or lasers for example.
    You can modify several netclass properties allowing you to change tank armor, amount of plates, player health, etc.
    You can modify the teams resources or tickets
    You can allow or retrict walls/turrets/dectection for certain players.
    You can use the game events to build "scripts" upon them; for example in the case someone buys a jeep 3 times in a row, you can force them to say "I am a jeep buying fag" :P
     
  4. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    interesting, i need some new study fields for when i have time i guess il try python then
     
  5. Omega_K2

    Omega_K2 Member

    Messages:
    343
    Likes Received:
    0
    Trophy Points:
    0
    Well, you can go even further and keep track of the total amount the player bought type x tank and put it into a database. Then you could go and add a command allowing other players to view how often someone bought a tank in one game.

    (You can go as far as creating your own stats system if you want :P)
     
  6. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    keeping track of something seems quite acceptably difficult, i might try it once i get the hang of it, not done anything on the subject though and atm still busy on other projects
     

Share This Page