French Posted February 12, 2012 Author Share Posted February 12, 2012 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 playerI 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 More sharing options...
Scott Posted February 12, 2012 Share Posted February 12, 2012 ```If Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Type = TILE_TYPE_BLOCKED then```For movingDown: -1 from yUp: +1 from yLeft -1 from xRight:+1 from xWarp:```PlayerWarp(index, mapnum, x, y)``` Link to comment Share on other sites More sharing options...
Ruins of Hell Posted February 12, 2012 Share Posted February 12, 2012 @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 More sharing options...
Scott Posted February 12, 2012 Share Posted February 12, 2012 My bad, changed it in my original post. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now