Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Adding an arena tile


kibbelz
 Share

Recommended Posts

@Likestodraw:

> But that would defeat the whole purpose of an arena tile attribute.

Have you did this part:
@kibbelz:

> Then make your way over to ModCombat, In Function CanPlayerAttackPlayer Find:
>
> ```
>     ' Check if map is attackable
>     If Not Map(GetPlayerMap(attacker)).Moral = MAP_MORAL_NONE Then
>         If GetPlayerPK(victim) = NO Then
>             Call PlayerMsg(attacker, "This is a safe zone!", BrightRed)
>             Exit Function
>         End If
>     End If
> ```
> Add above:
>
> ```
>     'Checks if it is an Arena
>     If Map(GetPlayerMap(victim)).Tile(GetPlayerX(victim), GetPlayerY(victim)).Type = TILE_TYPE_ARENA Then
>         CanPlayerAttackPlayer = True
>         Exit Function
>     End If
> ```
Link to comment
Share on other sites

I understand what you did… I just don't understand why you did it? Isn't the point of the arena is so people can battle on the tiles?? You have to press enter to open each tile? that makes no sense to me =/
Link to comment
Share on other sites

  • 6 months later...
> OMG i just noticed that this is the Arena Tile XD
>
> that was a major blonde moment right there! XD
>
> I actually did this to the Chest attriute Kibbelz made XD
>
> my bad i completely forgot that this is the Arena attribute XD

LOL.

Also, how do I make it so [this tutorial](http://www.touchofdeathforums.com/community/index.php?/topic/117014-eo-walking-through-players/) doesn't apply while on an Arena tile?

But, let me guess. Change

```
If Map.Moral = MAP_MORAL_SAFE Then Exit Function
```
to

```
If Map.Moral = MAP_MORAL_SAFE And Not Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Type = TILE_TYPE_ARENA Then Exit Function
```?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...