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

[VB6] How to return the attribue of a compartment ?


French
 Share

Recommended Posts

Hi,

I want to know if EO2.0 have a special function for return in a variable the attribue of the compartement ?

I explain. I want to do a script of teleportation in the map.

:bstar: :bstar: :bstar: :bstar: :bstar:
:bstar: :bstar: :bstar: :bstar: :bstar:
:bstar: :bstar: :rstar: :bstar: :bstar:
:bstar: :bstar: :bstar: :bstar: :bstar:
:bstar: :bstar: :bstar: :bstar: :bstar:

:bstar: = a compartment of the map
:rstar: = position of the player

I want to do this  : 

```
If Compartment(y+1)= none ( no block compartment )  and If Compartment(y+2) = none (no block) then SetYPlayer=y+2

```
This will be teleport the player :

:bstar: :bstar: :rstar: :bstar: :bstar:
:bstar: :bstar: :bstar: :bstar: :bstar:
:bstar: :bstar: :bstar: :bstar: :bstar:
:bstar: :bstar: :bstar: :bstar: :bstar:
:bstar: :bstar: :bstar: :bstar: :bstar:

So, I just want to know if EO have a function to return the attribue of a compartement.

Thx
Link to comment
Share on other sites

@Scott:

> ```
> If Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Type == TILE_TYPE_BLOCKED then
> ```

I think you mean:
```
If Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Type = TILE_TYPE_BLOCKED then
```
There's no difference between the comparison operator and the assignment operator in VB6.
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...