Attempts in Making a Turn-Based Combat System like Earthbound

For a couple days now, I have been trying to figure out how to manipulate LINGO scripts for a counter, random value generator, and other types to create a turn-based combat system that's similar to Earthbound for a project.
So far, I have the if then codes instantaneously moving the player from one marker to the next, but I can't figure out how to do the following:
1. Damage
2. Health Bar
3. Random Crit Generator
4. Healing
5. Player Controlling more than one sprite
6. Counter-Attack Competent AI scripting
Can anyone help me? I sorta have the health and the player controlling more than one sprite, but any help would be appreciated!

Hi WolRon
I am in the process of learning Java myself and from what i have read, you have a long road ahead of you!
To start this Project the following will be essential for you to know:
Applets - if this is going to an online game
Multiple Threads - for the Server side
Swing - for the GUI on both sides
AWT - help work with the user input (mouseListeners, buttonListeners, etc)
And knowledge of a database.
those are the most obvious things that you will need to understand.
I strongly suggest buying a Java book from which you need to start at the beginning. Although the concept of OOP is the same through most languages Java has terms - as do all languages- that will be different from the other languages. Starting at the beginning will be beneficial to your Java coding future.
Good luck.

Similar Messages

  • Remembering/updating values (text based combat)

    So I'm making a simple text based game where I have a (so far) very simple combat system.
    I'm using a switch-thingy where I can choose some spells to attack with, and after I made my choice the attack is performed and then the enemy gets to attack then the switch loop starts over. Probably not the best solution, but it'll have to do for now (or?). I and the enemy has a specified amount of health, but here's the simple problem; both me and my enemy will obviously starts counting health from full every time. How would I make the value being stored after every loop?

    It should be outside the loop, unless I'm mistaken. My code basically looks like this
    public class combat
         public static void main (String [] args)
              *variables*
              do
                   *loop*
                        *cases* (different spells)
                   if *my attack hits*
                        *print result to combat log*
                   else
                        *print result to combat log*
                   if *my enemy hits*
                        *print to combat log*
                   else
                        *print to combat log*
    }Don't I have to do something more to make the variable save between the loops? It doesn't do that at least.

  • How to create a turn-based multiplayer online game?

    Hello. This is my first time here. I am familiar with programming games and have been doing so for 20 years. However, I'm completely new to using Java to do so. In the past, I wrote games in BASIC, Blitz, and C++ using DirectX. Being familiar with C/C++, the Java language syntax is not a hurdle for me.
    I've never created a networking game, but I feel that if I tried to create one using one of the programming languages I already know that I would succeed at doing so. (I'm just trying to show that I feel confident in programming with the languages that i know)
    The dilemma here is that someone else would like me to program a turn'based multiplayer game for them in Java.
    I've downloaded the NetBeans 4.1 IDE and uncovered a lot of terms and such that I'm unfamiliar with.
    What I'm looking for from you guys is an overview of what I need to do to achieve my ultimate goal of creating this online game.
    As a reference, I need to create a game very similar to this one:
    http://www.tacticsarena.com/play/
    Click on the "Launch Game: Tactics Arena Online" link to see the game.
    Create a new account to play (accounts are free).
    Upon starting the NetBeans IDE, I found that I could create several different types of projects. I guess first of all, I need to know what kind of project is best suited to make this type of game.
    To name a few, I have to select from:
    Java Application
    Java Class Library (is this an Applet?)
    Web Application
    Enterprise Application
    EJB Module
    Then I guess I would like to know if any of the above projects would be used to make the clients interface or the server side software or both? Or do I need to use some other kind of software/programming language/etc. to create the server side? (As a side note, typically what kind of Operating system would the server be using? I ask because I may set one up myself for testing purposes.)
    Somewhere I came upon the term 'Servlet'. Is this some kind of Java server application? Do I need/want to be using this?
    As you can see, I'm very lost at where to begin. I'm not at all unfamiliar with programming. I'm just unfamiliar with Java.
    WolRon

    Hi WolRon
    I am in the process of learning Java myself and from what i have read, you have a long road ahead of you!
    To start this Project the following will be essential for you to know:
    Applets - if this is going to an online game
    Multiple Threads - for the Server side
    Swing - for the GUI on both sides
    AWT - help work with the user input (mouseListeners, buttonListeners, etc)
    And knowledge of a database.
    those are the most obvious things that you will need to understand.
    I strongly suggest buying a Java book from which you need to start at the beginning. Although the concept of OOP is the same through most languages Java has terms - as do all languages- that will be different from the other languages. Starting at the beginning will be beneficial to your Java coding future.
    Good luck.

  • Wireless Client PING-Based monitor system question

    Hi:
    I joined this forums because i need to recopilate info about a monitor system.
    So, i have a relative big wireless network and due to legal instances I MUST use a ping-based monitor system to see the status of my network devices and the final clients on wireless station.
    We developed a php linux-based system to make pings every 5 minutes to see if there is a host UP or DOWN. Everything works fine, the server is making the pings to the clients and MRTG generates graphic statistics.
    Reference image -> http://img103.imageshack.us/img103/9125/pingred0xq.jpg
    The problem is now I have received a notification to make a change on this system to send the pings FROM the clients TO the server and generate statistics.
    Is there any difference between making pings from the Client side to the server and viceversa? Does round-trip time is different maybe?
    What are the technicals issues on this system?
    I accept every critic, advice, suggestion, information, etc.
    PS: Sorry my poor english

    That's interesting. It sounds as if you may have a good reason for implementing this, but it would also seem to be an inefficient monitoring scheme. A polling interval of 5 minutes does not give that much granularity for statistics even if you are able to make it work from the client side. Also, you would need to centrally collect the statistics in some way. If it were me I would stick to a centrally based monitoring system. I make heavy use of the syslog capabiliy on Cisco access points since they log just about everything. You can even have a syslog monitoring system page you for something as small as dropped wireless connection if you want to go that far.
    Sorry if that's not much help, but I would definately have some people look at the big picture before implementing the proposed solution.
    Good luck with it.
    R Duke

  • Dealing with a turn based application with using a global static variable

    Hi there. I read some articles about JavaFX concurrency,so as a newbie i have to practice on it. Now i'm trying to implement a turn based application that can be played among 3-6 players. Moreover, i use a scene imported from a .fxml file and i have to update it correctly depends on some calculations of each thread (in other word players ). My main issue is, i don't wanna use a while loop which checks the state of game like;
    while( GameState != State.GAME_OVER ){
         currentPlayer = GameBoard.getNextPlayer();
         // do some actions,calculations etc.
    So, i want to use worker threads instead of this while loop. I guess using Service class for iterating and assigning the next player will be suitable instead of using the while loop and Tasks for doing each player's calculation,or waiting for some responses from Human players on UI based,however, i'm struggling with two problems.
    There should a global static variable ( like GameState which is an Enumarator ) determines the state of the game,so it should be updated and should be checked by each turn. Is there any way to do this ?
    How can i get rid off this while loop ?
    I will appreciate for every answer. Thanks anyway.

    It shouldn't make too much difference. The basic idea is that you have a model class representing your game state (the Game class in jsmith's example). When a player makes a move, you update the state of the game. Since this will result in changes to the UI, this update should be performed on the FX Application Thread.
    If the player making the move is a human player, the move will likely be made by a user action (button press or mouse click, etc); this will be handled on the FX Application thread anyway.
    When the state of the game changes so it is the turn of an "artificial" player to make a move, have the object representing the artificial player calculate its next move, and then update the game state. Since this is a response to the game state changing (it's now the turn of the artificial player), this will also be on the FX Application Thread.
    The only (slight) complexity comes if the calculation of the move for the artificial player takes a long time. You don't want to perform this long running calculation on the FX Application Thread. The cleanest way to manage this is to launch a Task which calculates the desired move, and then updates the game state when the move is ready. So, something like this:
    GameState game = ... ;
    // UI is bound to the game state.
    ExecutorService executorService = ... ;
    final Player currentPlayer = game.getCurrentPlayer() ;
    final Task<Move> calculateMoveTask = new Task<Move>() {
         @Override
         public Move call() {
              Move move = // compute next move...
              return move ;
    calculateMoveTask.setOnSucceeded(new EventHandler<WorkerStateEvent>() {
         @Override
         public void handle(WorkerStateEvent event) {
              gameState.makeMove(currentPlayer, calculateMoveTask.getValue());
    executorService.submit(calculateMoveTask);
    If you're doing more threading than that, you're probably doing it wrong... . There should also be no need for anything to be held as a "global" static variable (the idea above is the only structural modification you need to the example posted by jsmith).

  • SMD agent for VMW-based SAP systems

    SAP talents:
    We have hard time to configure SMD agents for VMW-based SAP systems.
    We have followed some SAP documents for non-VMW-based SAP systems, but seems that SMD agent cannot
    differentiate the individual system on VMW.
    Our SMD agent has no problem for non-VMW-based systems.
    Thanks!

    Sorry to reply late because we have attempted a lot of  fixes but all failed
    For example, we have QAX, QAY and QAZ on VMW. 
    On Wily Introscope:
    1)  QAZ simply does not show up even we deployed/configured the agents as the procedure specified;
    2) under the node QAX, we see QAY's entry as a sub-entry.
    Does each SAP system need an agent OR only one agent is enough?  We have tried both ways  but
    seems not working properly either way.
    Please help, thanks a lot!

  • [SOLVED] Wince Exception 'Data Abort' (0x4) for gwes.dll with ROM based file system??

    Hello friends,
    Previously, I was using RAM and ROM based file system and my device was booting correctly. Now, I made only one change related to ROM based file system. When I selected this ROM based file system and try to boot the device.... I got the exception and the
    logs are ---- 
    3321 PID:400002 TID:410002 SetOpp: choosing AM335X_REV_ES2_1
    3321 PID:400002 TID:410002 SetOpp to 3
    3331 PID:400002 TID:590002 OALIoCtlHalInitRTC: Initializing RTC
    3331 PID:400002 TID:590002 RTC_SetTime() = 2006.01.01 12:00:00.000
    3480 PID:400002 TID:930006 ECC TYPE is BCH 8 bit
    3481 PID:400002 TID:930006 8Bit NAND device
    4835 PID:400002 TID:930006 CM3: input file [\windows\firmware.bin] is 9932 bytes long
    4837 PID:400002 TID:930006 CM3: firmware file read ok!
    5037 PID:400002 TID:930006 SDHC: CPU revision 0xffffffff
    5181 PID:400002 TID:930006 UCD_INIT: g_Dc.pUsb0Regs->MODE_R = 0x80
    5185 PID:400002 TID:930006 CAM3xxOTG::Init DEVCTL 80
    5391 PID:400002 TID:930006 UsbPowerModule: 2 DEVCTL = 0x00000081
    5664 PID:400002 TID:2df001e Exception 'Data Abort' (0x4): Thread-Id=02df001e(pth=9e451cc8), Proc-Id=00400002(pprc=8219f5e0) 'NK.EXE', VM-active=04510006(pprc=9e4658c0) 'GweUser.exe'
    5664 PID:400002 TID:2df001e PC=efd918b8(gwes.dll+0x000118b8) RA=efd918b8(gwes.dll+0x000118b8) SP=ab5ff960, BVA=00000024
    1529482 PID:400002 TID:2df001e Exception 'Data Abort' (0x4): Thread-Id=02df001e(pth=9e451cc8), Proc-Id=00400002(pprc=8219f5e0) 'NK.EXE', VM-active=04510006(pprc=9e4658c0) 'GweUser.exe'
    1529483 PID:400002 TID:2df001e PC=efd918b8(gwes.dll+0x000118b8) RA=efd918b8(gwes.dll+0x000118b8) SP=ab5ff960, BVA=00000024
    PB Debugger The Kernel Debugger has been disconnected successfully.
    After giving calibration inputs, I go the above exception and the LCD screen becomes white only... But i only changed the file system from RAM & ROM based file system to ROM based file system....
    As, I am trying to find the solution but up to now I am unable to find the solution. I request to provide the appropriate inputs???? 

    Hello Friends,
    After using the filter as an environment variable in the .bat file still the issue is not solved.. I can only see the Windows Embedded Compact 7 logo without any icon and toolbar??????
    My platform .reg files entries are as -
    ;; Load Device Manager to start storage driver
    #if (defined SYSGEN_FSROMONLY)
    [HKEY_LOCAL_MACHINE\init\BootVars]
    "Start DevMgr"=dword:1
    ;; Block driver settings to load at boot phase
    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\]
    "Profile"="FlashDisk"
    "Flags"=dword:1000
    ;; How to use storage space
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
    "AutoMount"=dword:1
    "AutoPart"=dword:1
    "AutoFormat"=dword:1
    "PartitionDriver"="mspart.dll"
    "MountAsBootable"=dword:1
    "Name"="NANDFLASH"
    "Folder"="NANDFLASH"
    "DefaultFileSystem"="FATFS"
    ;; Making storage device as a root
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
    "MountAsRoot"=dword:1
    "MountAsBootable"=dword:1
    "MountPermanent"=dword:1
    "AutoPart"=dword:1
    "AutoFormat"=dword:1
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS\Filters\fsreplxfilt]
    "dll"="fsreplxfilt.dll"
    "order"=dword:1 ; must be loaded before other filters
    #endif
    ;===============================================================================
    and .bat file entries are as -
    set SYSGEN_FSREPLXFILT=1
    set PRJ_ENABLE_FSEXTREPL=1
    set PRJ_ENABLE_FSMOUNTASROOT=1
    Where I am missing some thing please tell me???????

  • Error while trying to send a file through XI to SAP R/3 based OLTP system

    Hi all,
    I encountered with an error in the runtime workbench for the below mentioned scenario
    ERROR message
    <b>Unknown error: javax.ejb.CreateException: Neither messager server nor application server are defined for system IXI</b>
    SCENARIO
    The manufacturing system triggers an equipment failure. The failure message is sent through SAP Exchange Infrastructure (SAP XI) to the SAP R/3 based OLTP system,
    changing the equipment status to a failure state. This is achieved by triggering the execution of Remote Function Call (RFC) present in the OLTP system from the SAP XI integration server.
    Thanks and regards
    Jishi

    Hi Jishi,
    Please check the Receiver RFC communication channel in your integration directory.
    Check the logon parameters provided. From the error message, I guess there is no application server or message server provided, which is mandatory for XI to logon to the target backend R/3 system.

  • I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    Hello mrmacjohn,
    Verifying that any iCloud account that may be signed in is signed out should resolve this error.
    On your Mac, open iCloud preferences, then click Sign Out.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Cheers,
    Allen

  • Game Center with multi-player games/ turn based

    Hi All
    I seem to have a problem with the concept of the Game Center and exactly what it's supposed to do. If I am being a thicky, please tell me!!
    My Wife has an Ipad, my daughter an Ipad mini, son has an Iphone 4S and I have just bought a macbook pro. I have just started to work away and thought it would be a great family thing to play games against each other but this games center doesn't seem to be for this! I have added all 3 of them as friends on the center and thats about all I can do!
    When I goto the 'my games' on my pro, it says I dont have any games and I can download them from the app store, when I click the link, I get a blank screen come up with no games.
    When I goto ITunes and try to download a multiplayer turn based game it downloads but I cant do anything with it (I did this with scrabble, a hang man game and Uno).
    Are all these different hardware types incompatable to each other with game center?
    How do I get games on there?
    Are there any real time turn based games that will fullfill what I want? I have a go, then one of my family members does the same, even though we may have to wait a few hours to do the next turn. It doesnt have to be all 4 of us, maybe run 3 games at once with myself against each of my family.
    Thankyou in advance
    Andy

    Your family can play each other by purchasing the app on their own devices – but you'll be left out. There is a difference between buying apps from the iTunes Store and using the App Store on your Macbook Pro (known as the Mac App Store).

  • Can't update iOS 8 on my iPhone5 through iTunes on Windows 8 (error 3004, 3194). Updated host file, opened port 80, 443; turned off security system and firewall, etc. But nothing works. How to solve this problem?

    Can't update iOS 8 on my iPhone5 through iTunes on Windows 8 (error 3004, 3194). Updated host file, opened port 80, 443; turned off security system and firewall, etc. But nothing works. How to solve this problem?

    Hi the_mad_movies,
    It seems like this article will be the best option for addressing this issue:
    Error 3194, Error 17, or "This device isn't eligible for the requested build"
    http://support.apple.com/kb/ts4451
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • Can a 128 ssd storage still effectively work if I install windows 8.1 plus msoffice and a window-based proposal system? I plan to buy a macbook air entry level with 1.7 gh i5 processor.

    Can a 128 ssd storage still effectively work if I install windows 8.1 plus msoffice and a window-based proposal system? I plan to buy a macbook air entry level with 1.7 gh i5 processor.

    If you are going to use Mac OS X and its associated applications, and a BootCamp partition with Windows 8, and MS Office and all of the work created there, you will more than likely run out of space on a 128 GB SSD pretty quickly...especially if you put any music, photos or videos on it.  Those things take a lot of space so you will have to be very, very careful about what you want to put on a 128 GB storage space.  You would be better off going for 512 GB with what you plan on doing with it.

  • Best way to implement a countdown timer for a turn based LCCS game

    Hello,
    I am trying to build a turn based game and sketching out the high level map, so I can focus my efforts towards the direction I should be digging.
    One thing I have not seen much in the sample apps is how a turn based game is best handled.
    For example, a countdown timer. Should it be a shared property? Or a Baton which is supposed to manage workflows and has a timeout property?
    Or, should I forget those two, and time this on the server, although if it would become popular keeping track of all the times in the rooms would cost an arm and leg. Would love to hear some best practices on this.

    good idea.
    Which one or all of them?
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to
    suffering - Yoda. Blog - http://www.computerprofessions.co.nr

  • I'm trying to use a madcatz controller on the mac but it turns on for 2 seconds and turns off. the system profiler picks it up as a xbox 360 gamepad but says its not been configured. how can i allow my self use this with my games.

    i'm trying to use a madcatz controller on the mac but it turns on for 2 seconds and turns off. the system profiler picks it up as a xbox 360 gamepad but says its not been configured. how can i allow my self use this with my games!

    I have exactly the same problem.
    I'm a little peed-off with Microsoft on this. The original wireless controller I have doesn't work either since the cable I'm using is 'just' the charge and play cable, so a direct connection to my Mac won't work with this cable. It's a cable for god's sake. Why on EARTH put any limitations on this!?!?
    Next I learn I need an additional USB wireless receiver from Microsoft to get my original 360 controller to talk to my Mac. As I certainly don't want to fork any more microsoft dollars on this, this is not an option.
    Next I think, yes! I have a MadCatz 360 wired USB controller. This should surely do the trick just plugging it in and the way I go. But oh no, for some reason I plug my MadCatz Xbox360 controller in, it flashes a few times then switches off and can't be turned on again.
    The System Profiles recognizes it as a MadCatz 360 device controller but that is about it, but the ontroller software I download for the System Prefs (360Controller, USBOverdrive etc) don't even recognize the controller as being plugged in.
    What the **** Is The Microsoft Deal with all of this!?!?
    PS: Oh, and I forgot to mention, there are No drivers for device 4716 that I can find on the MadCatz website, or am I going blind?
    If anyone has a link, it would be appreciated.
    Message was edited by: nostrawaggus

  • AMD based Windows systems

    The "Windows Offline Download and Installation Instructions for Java Runtime Environment" has the following : -
    "Note: For AMD based Windows systems, the installation file is
    jre-1_5_0_11-windows-amd64.exe"
    Does this apply only to 64 bit systems?
    I have an older system with an ATHLON XP 2200 PLUS Socket A (1800mhz) CPU running Windows XP.
    I am having trouble running some JAVA applets with Firefox and want to make sure I have the correct version of JAVA installed
    Thanks
    Tarras

    You should just download the "normal" download. The AMD64 one is just for people running a 64bit system with a 64 bit Windows OS. That's a very limited number and if you're in there you definitely know it.
    So just grab the "normal" download (I can't remember but it will be marked with one of "x86", "i586" or just "intel").

Maybe you are looking for

  • Packaging Layout grouping issue

    Hi All, we have to implement the packages types grouping in Packaging Layout Template (Delivery -> Right Click -> Packaging). we did all the steps to have the grouping (SortValue(), repetitive area Sort and so on), but there is no grouping by the sam

  • Setting up a New Site and Having Issues with Flash SWF's

    Hello.  I just set up a new site definition, with a testiing server using MAMP Pro, and everything seems to be functioning properly, except that my swf's are not showing up when you publish to a browser from dreamweaver, instead you get the place hol

  • Dir listing with umlauts / special characters

    I've got a directory tree, where several files have umlauts or french accented characters in their names. When I do 'ls' in such a directory, I can see the umlauts fine in Terminal, e.g.: Die rote Wüste - Michelangelo Antonioni.avi Nazarin - Luis Buñ

  • I have an IPod touch 3rd gen that won't see any wifi connections.

    The wifi doesn't work at all. I tried everything besides restoring it to fix the problem and the back where the antenna is has been pushed in. It just loads like it's looking for wifi, but it doesn't find anything. Any ideas how to fix it? :/

  • Burning Events created (54 of them) straight to DVD (no editing)

    I want to take 54 events (a span of over a years worth of movies) that I have uploaded onto iMovie, and now burn them ALL onto a dvd....but I can't figure out how to do it!