Create a free account to remove all ad content.

Author Topic:  Is this possible?  (Read 182 times)

0 Members and 1 Guest are viewing this topic.

Dryym

  • Supreme Member
  • *
  • Posts: 4336
  • What's yours is mine. ~TM's Resident Master Thief~
    • View Profile
  • Xbox: dryym
Is this possible?
« on: August 01, 2016, 08:24:10 AM »
"
Var [sx] = [MinSpawnX] + [Rand:MaxSpawnX]
Var [sy] = [MinSpawnY] + [Rand:MaxSpawnY]
Var [sz] = [MinSpawnZ] + [Rand:MaxSpawnZ]
If
  IsBlockPassable [sx,sy,sz] [False]
  Var [sy] = [sy] + [1]
  IsBlockPassable [sx,sy,sz] [True]
  Var [sy] = [sy] + [1]
  IsBlockPassable [sx,sy,sz] [True]
Then
  Var [sy] = [sy] - [2]
  Teleport [player] [sx,sy,sz]
Else
  Loop
"

I don't know if Var commands will work in conditionals like that, But it'd be useful.


Can Var commands be placed in conditionals like this?
It is inconsistent with current behaviour, But it is also useful as seen here so that you don't need to declare 3 separate variables to check this area.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym