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

Is there any way to make classes spawn in different maps?


aiden500
 Share

Recommended Posts

How do you search you ask? Well it's very straight forward you see, go to the main page, type what you want to search for in the box at the top with the words "Search…" in it.  Hit enter and look for what you need, all very easy really.
Link to comment
Share on other sites

learn how to search u lazy arse

@Soul:

> Yeah, just use your example above.
>
> ```
> If GetPlayerClass(index) = 1 Then
> Select Case Rand(1,3)
>     Case 1
>             Player(index).Map = 3
>             Player(index).x = 4
>             Player(index).y = 4
>     Case 2
>             Player(index).Map = 5
>             Player(index).x = 2
>             Player(index).y = 4
>     Case 3
>             Player(index).Map = 2
>             Player(index).x = 3
>             Player(index).y = 6
> End Select
>         ElseIf GetPlayerClass(index) = 2 Then
> Select Case Rand(1,3)
>     Case 1
>             Player(index).Map = 3
>             Player(index).x = 4
>             Player(index).y = 4
>     Case 2
>             Player(index).Map = 5
>             Player(index).x = 2
>             Player(index).y = 4
>     Case 3
>             Player(index).Map = 2
>             Player(index).x = 3
>             Player(index).y = 6
> End Select
>         ElseIf GetPlayerClass(index) = 3 Then
> Select Case Rand(1,3)
>     Case 1
>             Player(index).Map = 3
>             Player(index).x = 4
>             Player(index).y = 4
>     Case 2
>             Player(index).Map = 5
>             Player(index).x = 2
>             Player(index).y = 4
>     Case 3
>             Player(index).Map = 2
>             Player(index).x = 3
>             Player(index).y = 6
> End Select
>         ElseIf GetPlayerClass(index) = 4 Then
> Select Case Rand(1,3)
>     Case 1
>             Player(index).Map = 3
>             Player(index).x = 4
>             Player(index).y = 4
>     Case 2
>             Player(index).Map = 5
>             Player(index).x = 2
>             Player(index).y = 4
>     Case 3
>             Player(index).Map = 2
>             Player(index).x = 3
>             Player(index).y = 6
> End Select
> End If
>
> ```
> There's no special rules for If … ElseIf ... End If, whatever should happen goes in the appropriate spot.
Link to comment
Share on other sites

  • 2 weeks later...
what the function for
```
Select Case Rand(1,3)
    Case 1
            Player(index).Map = 3
            Player(index).x = 4
            Player(index).y = 4
    Case 2
            Player(index).Map = 5
            Player(index).x = 2
            Player(index).y = 4
    Case 3
            Player(index).Map = 2
            Player(index).x = 3
            Player(index).y = 6
```
the Case ?
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...