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

Warp hole


totalwar235
 Share

Recommended Posts

ok i just wrote the script but it will not work can someone show me what i screwed up?

Case 3
Random = Rand(0,2)
Select Random Case
Case 0
CallPlayerWarp(index, 31, 9, 0)

Case 1
CallPlayerWarp(index, 31, 30, 15)

Case 2
CallPlayerWarp(index, 31, 9, 30)
End Select
End if
Exit Sub
Link to comment
Share on other sites

@totalwar235:

> ok i just wrote the script but it will not work can someone show me what i screwed up?
>
> Case 3
> Random = Rand(0,2)
> Select Random Case
> Case 0
> CallPlayerWarp(index, 31, 9, 0)
>
> Case 1
> CallPlayerWarp(index, 31, 30, 15)
>
> Case 2
> CallPlayerWarp(index, 31, 9, 30)
> End Select
> End if
> Exit Sub

Lemme guess, Only case 1 is going off right?

When you do rand, the first number must be your number MINUS 1 and the last number PLUS 1.  Dont ask me why they did that ;o
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...