edited April 2015 in ORK Support
Hey there,

i've done a lot of tutorials and now i want to set up a real time battle (not round based), for simply defeat an enemy.

My Char is able to cast "Fire". The Enemy is named "Enemy 1".

First i set a real time battle area and then one combatant spawner into it.

So when i play the game, i can see the enemy and i can cast "Fire" on him, but nothing happens. A notification "Enemy 1 does nothing" appears.

What am i doing wrong?


UPDATE: Tried several options and now my Enemy uses the Attacks A, B and C (notification: "Enemy 1 C attacks").
But i do not lost any HP, when he attacks me ?!?!

kind regards,
ulli
Post edited by gamingislove on
  • edited March 2015
    Do you have damage dealers on your weapons or fireballs and a damage zone on your player and each enemy?

    Also check the elements for you and your enemies in the combatants section and make sure they are high.

    The damage is done by formula. Check what formula you're using and then balance the stats of your player and enemy.

    I've asked the same questions before in the forum and gamingislove explained how it works. I'll see if I can find this threads.
    Post edited by Catacomber on
  • My Enemy have 2 weapons (left hand + right hand). he can attack me, but i lost no HP.

    > Also check the elements for you and your enemies in the combatants section are high.
    where can i check that?

    > The damage is done by formula. Check what formula you're using and then balance the stats of your player and enemy.
    Where can i found it?

    regards,
    ulli
  • Look in the Combatants/Combatants section for your player and enemies. It's where you set up the name of the player and assigned their prefab and set up their attacks and items they spawn with.

    Formulas is set up in a different area of the editor. If you followed the tutorials you set up formulas.

    I'm not at my computer right now so can't tell you more specifically where.
  • yeah, i have all the formulas and set up the stats from my enemy higher than mine, that he can "hurt" me.
    but nothing happens .... really frustrating.
  • edited March 2015
    Do you have a damage zone on your player? What are the elements for your player? Fire, etc.

    Do you have a damage dealer on both weapons? Try giving him a fire ball ability. Put a sphere collider on the fireball and give it a damage dealer.
    Post edited by Catacomber on
  • how can i put the damage zone on my player and how can i put a sphere collider on the fireball? i thought it's an ability, not an object?!

    I can Attack and Fire (-ball) and have 2 swords (left + right hand).

    sry, iam a newbee with ORK, but it seems to be a fantastic framework.
  • edited March 2015
    Put your player in the scene and select him. Go to the ork scene organizer and choose damage zone as a component to add to your player prefab. Slide the new player prefab into the original player prefab.

    Slide your fireball prefab into the scene. Add a spherical collider.With your fireball,prefab selected go to Ork scene organizer go to add component and add a damage dealer component. In that damage dealer check real time battle one time damage one Attack--again. It at my computer so can't be more specific.

    The ability has to have a prefab. Go over ability tutorial again and tutorial how to shoot a fireball at the enemy.
    Post edited by Catacomber on
  • OK, think i've found my problem now.

    i've done the tutorial for casting the fireball and it works ... BUT ... the cast (fireball) appears at my Spawn-Point (http://orkframework.com/game-tutorial/2013/08/06/3-adding-the-player/) and not in front of my player. so i cant do any damage, it's logically.
    Actually my spawn-point (a bush) casts a fireball .. little bit funny :)

    so i've tested it with a healing potion, same problem. there is a green cloud (animation) over my spawn-point. also with a mana-potion (blue cloud over the spawn-point, but not over my player).

    any help is welcome.
  • edited March 2015
    The event your Fireball ability uses does it look exactly like the one in the tutorial? It has a move into direction step? You set up that battle event and put it where it goes? And the prefab you're using in that battle event is the fireball prefab?

    I think you can get your real time battles working but you need a little more practice about what goes where which we've all gone through. Hang in there and just come back with your questions.

    You need to hook up that battle event with the ability to get the fireball moving.

    Make sure that you have in the Animations setting of the Fireball ability that battle event.
    Post edited by Catacomber on
  • I've uploaded my project, so please have a look at it:

    http://www.wohnkontakt.de/unity/123.html

    You can cast the fireball with the Hotkey 4.

    I did everything as described in the tutorials , but if you cast the fireball or take a healing potion, you see the effects on the spawn point (turn around - it's a little bush in front of the wooden fence), not on the player.

    The fireball-cast consumes mana (5), but when I take a mana potion to fill up the mana, my mana is not replenished. I think my spawn-point gets the mana-fill-up. :))

    regards,
    ulli
  • Real time tutorials start with game tutorial 31, but previous tutorials are also crucial for it, as there are other things set up (e.g. animating attacks, move AI, etc.). I'd really recommend doing everything in the correct order - if you don't need other battle types, you can skip setting them up in your project, but you'll still need to go through the other things, e.g. animating battles.

    If the fireball isn't spawning where it should, you most likely selected the wrong object for the position. Or you have a strange player setup, where the actual player object isn't moved and the moving player is only a child object. In that case, you can use the Child As Root setting in the combatant's settings.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.