Jump to content

  •  
- - - - -

Monster/AI Magical attacks | AoE spells

magic fighting

  • Please log in to reply
5 replies to this topic

#1 Fire

Fire

    Advanced Member

  • Full Member
  • PipPipPip
  • 758 posts
  • LocationPoland,Europe

Posted 26 November 2015 - 02:14 PM

No, I dont play anymore but I want to share with you about my PvE vision, mainly related to magical behaviour.
I played game called Tibia, its 2d, its also games with tiles, like EL/OL, you move like on the chessboard.
I dont have to mention how retarded and boring OL pve is, I have no idea how ppl could spend years on grinding, I simply dont believe that none coded some advaced bot, program that they used for training a/d, for mixing just autoclicker is enough..

To be clear, I AM NOT saying OL PvE must look like this, its just an example to shake your imagination and open your mind.

First step is about introducing some elements that magic will be based on like Fire Ice Earth Death Holy Energy, these are main ones.
I have made my own Tibia server, I looked on it's code to find all basic attacks that mobs can use, these are:

<attack name="melee"
<attack name="ice"
<attack name="death"
<attack name="earth"
<attack name="physical"

<attack name="fire"
<attack name="firefield"
<attack name="firecondition"

<attack name="energy"
<attack name="energyfield"
<attack name="energycondition"

<attack name="poison"
<attack name="poisonfield"
<attack name="poisoncondition"

<attack name="fireball"
<attack name="holy"
<attack name="thunderstorm"
<attack name="speed"
<attack name="drunk"
<attack name="lifedrain"
<attack name="manadrain"
<attack name="effect"
<attack name="outfit"
<attack name="strength"
<attack name="drown"
<attack name="drowncondition"
<attack name="cursecondition"
<attack name="energy strike"


With all those attacks you can change it's strenght size etc, here is an example of monster.xml file, attack lines:



<attacks>
<attack name="death" interval="2000" chance="30" length="6" spread="0" min="-150" max="-300">
<attribute key="areaEffect" value="blacksmoke" />
</attack>
<attack name="manadrain" interval="2000" chance="20" radius="5" target="0" spread="0" min="-150" max="-250">
<attribute key="areaEffect" value="blacksmoke" />
</attack>
<attack name="death" interval="2000" chance="20" range="9" min="-150" max="-200">
<attribute key="shootEffect" value="suddendeath" />
<attribute key="areaEffect" value="smallclouds" />
</attack>
<attack name="earth" interval="2000" chance="30" range="9" target="1" radius="2" min="-150" max="-250">
<attribute key="shootEffect" value="smallearth" />
<attribute key="areaEffect" value="greenshimmer" />
</attack>
<attack name="drunk" interval="2000" chance="10" target="0" radius="4" duration="6000">
<attribute key="areaEffect" value="rednote" />
</attack>
</attacks>

I dont think it will be hard to introduce in OL, these attacks use some animations when they are used, like our magical spell's animations, in practise it looks like this:

X= player or other creature (you can cast area spells on mobs so its not always a player)

Posted Image




Posted Image

Posted Image


So here is an example of bomb spells, these can be casted by 1) using spell on yourself (that will hit anyone in spell range) or by throwing spell rune to the target, depends where it explode, will also hit units in spell range

If you have tiles in game you can step in 8 directions, there are also waves spells, looks like this:

Posted Image

Posted Image



Or beam spells: Posted Image

So you see how it looks like, OL same as Tibia is game based on tiles, we can do magic in this way and this will make multi combat fighting amazingly interesting in comparison to what its now.

To give you a better example, I will paste Dragon file here, here it is:
------------------------------------------------------------------------------------------------------------
<monster name="Dragon" nameDescription="a dragon" race="blood" experience="700" speed="185" manacost="0">
<health now="1000" max="1000"/>
<look type="34" corpse="5973"/>
<targetchange interval="4000" chance="10"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="80"/>
<flag runonhealth="300"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="50" attack="40"/>
<attack name="fire" interval="2000" chance="15" range="7" radius="4" target="1" min="-60" max="-140">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="fire" interval="2000" chance="10" length="8" spread="3" min="-100" max="-170">
<attribute key="areaEffect" value="firearea"/>
</attack>
</attacks>
<defenses armor="30" defense="30">
<defense name="healing" interval="2000" chance="15" min="40" max="70">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<elements>
<element earthPercent="80"/>
<element energyPercent="20"/>
<element icePercent="-10"/>
</elements>
<immunities>
<immunity paralyze="1"/>
<immunity invisible="1"/>
<immunity fire="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="GROOAAARRR" yell="1"/>
<voice sentence="FCHHHHH" yell="1"/>
</voices>
<loot>
<item id="2148" countmax="70" chance="47500"/><!-- gold coin -->
<item id="2148" countmax="45" chance="37500"/><!-- gold coin -->
<item id="12413" chance="9740"/><!-- dragon's tail -->
<item id="2672" countmax="3" chance="65500"/><!-- dragon ham -->
<item id="2509" chance="15000"/><!-- steel shield -->
<item id="2455" chance="10000"/><!-- crossbow -->
<item id="2397" chance="4000"/><!-- longsword -->
<item id="2457" chance="3000"/><!-- steel helmet -->
<item id="2647" chance="2000"/><!-- plate legs -->
<item id="2413" chance="1950"/><!-- broadsword -->
<item id="7588" chance="1000"/><!-- strong health potion -->
<item id="2387" chance="960"/><!-- double axe -->
<item id="2187" chance="1005"/><!-- wand of inferno -->
<item id="5920" chance="1000"/><!-- green dragon scale -->
<item id="2434" chance="560"/><!-- dragon hammer -->
<item id="5877" chance="1005"/><!-- green dragon leather -->
<item id="2145" chance="380"/><!-- small diamond -->
<item id="2516" chance="320"/><!-- dragon shield -->
<item id="2409" chance="420"/><!-- serpent sword -->
<item id="7430" chance="110"/><!-- dragonbone staff -->
<item id="2177" chance="120"/><!-- life crystal -->
<item id="2546" countmax="10" chance="8060"/><!-- burst arrow -->
</loot>
</monster>
-------------------------------------------------------------------------------------------------

So if you are fighting with dragon, its much more interesting and tacticable, you can use stuff that protects from fire damage also you have to stay aslant to it, to avoid fire wave.

Think about how would it look like in OL, during invasion..
Here is a vid that I've mad on my server, I know its even too much of these magical attacks, but its not real Tibia:


https://www.youtube....eature=youtu.be



I also edited some mob attacks and recorded it to show you how these work in practise, I was unable to paste animations of it, these are only pics, so here it is:

https://www.youtube....eature=youtu.be



Attack of it:

<attacks>

<attack name="melee" interval="2000" min="0" max="-60" />

<attack name="ice" interval="2000" chance="5" length="8" spread="3" min="-10" max="-15">

<attribute key="areaEffect" value="iceattack" />

</attack>

<attack name="ice" interval="2000" chance="5" range="7" min="-30" max="-40">

<attribute key="shootEffect" value="snowball" />

</attack>

<attack name="ice" interval="2000" chance="5" length="8" spread="3" min="-60" max="-70">

<attribute key="areaEffect" value="icearea" />

</attack>

<attack name="ice" interval="2000" chance="5" radius="8" target="1" min="-190" max="-200">

<attribute key="areaEffect" value="icearea" />

<attribute key="shootEffect" value="snowball" />

</attack>

<attack name="ice" interval="2000" chance="5" radius="8" target="1" min="-490" max="-500"  

<attribute key="areaEffect" value="iceattack" />

<attribute key="shootEffect" value="snowball" />

</attack>

<attack name="fire" interval="3000" chance="5" range="7" radius="4" target="1" min="-250" max="-350">

<attribute key="shootEffect" value="fire" />

</attack>  

<attack name="firefield" interval="1000" chance="5" range="7" radius="6" target="1">

<attribute key="shootEffect" value="fire" /> <attribute key="areaEffect" value="firearea" />

</attack>

<attack name="firefield" interval="1000" chance="5" range="7" radius="1" target="1">

<attribute key="shootEffect" value="fire" />

<attribute key="areaEffect" value="firearea" />

</attack>

<attack name="fire" interval="4000" chance="5" length="8" spread="3" min="-250" max="-550">

<attribute key="areaEffect" value="firearea" />

</attack>

<attack name="fire" interval="2000" chance="5" range="7" radius="3" target="1" min="0" max="-180">

<attribute key="shootEffect" value="burstarrow" />

<attribute key="areaEffect" value="firearea" />

</attack>

<attack name="fire" interval="2000" chance="5" range="7" min="-5" max="-45">

<attribute key="shootEffect" value="fire" />

</attack>  

<attack name="fire" interval="2000" chance="5" length="18" spread="0" min="-150" max="-250">

<attribute key="areaEffect" value="fireattack" />

</attack>

<attack name="fire" interval="3000" chance="5" range="7" radius="4" target="1" min="-250" max="-350">

<attribute key="shootEffect" value="fire" />

<attribute key="areaEffect" value="fireattack" />  

</attack>

<attack name="firefield" interval="1000" chance="5" range="7" radius="6" target="1">

<attribute key="shootEffect" value="fire" />

<attribute key="areaEffect" value="fireattack" />







Leave your comment :)







Fire 2k15



#2 themuntdregger

themuntdregger

    Official Troll

  • Full Member
  • PipPipPip
  • 1001 posts
  • LocationBehind you

Posted 26 November 2015 - 05:56 PM

wb Fire. Cool Idea +1

#3 Fire

Fire

    Advanced Member

  • Full Member
  • PipPipPip
  • 758 posts
  • LocationPoland,Europe

Posted 28 November 2015 - 04:04 AM

Noticed interesting dependency:
the more interesting subject the less ppl comment


:)

#4 Holosko

Holosko

    Newbie

  • Members
  • Pip
  • 24 posts

Posted 28 November 2015 - 06:30 AM

Smite Summoned is a type of AOE spell in OL using 16x16 tiles and the player as center, this can be based to create diverse AOE spells.

#5 CoduX

CoduX

    Advanced Member

  • Full Member
  • PipPipPip
  • 1203 posts
  • LocationLand Down Under

Posted 29 November 2015 - 10:38 PM

+1

#6 themuntdregger

themuntdregger

    Official Troll

  • Full Member
  • PipPipPip
  • 1001 posts
  • LocationBehind you

Posted 01 December 2015 - 12:20 PM

View PostFire, on 28 November 2015 - 04:04 AM, said:

Noticed interesting dependency:
the more interesting subject the less ppl comment


:)

You speaketh the truth oh holy one. Welcome to my world.

However, doesn't make your post any less interesting/relevant/cool. If ppl don't want to recognise that then fuck them!





Also tagged with one or more of these keywords: magic, fighting

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users