totalwar235 Posted March 5, 2009 Author Share Posted March 5, 2009 would it be hard to make a warp tile that sends you to four different places at random and im not asking if anyone can write it for me Link to comment Share on other sites More sharing options...
Fruitpunch Posted March 5, 2009 Share Posted March 5, 2009 @totalwar235:> would it be hard to make a warp tile that sends you to four different places at random and im not asking if anyone can write it for meno pretty basic actually Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted March 5, 2009 Share Posted March 5, 2009 Scripted tile```Case W/eRandom = Rand(0,5)Select Case RandomCase 1Call PlayerWarp(Index, Map X, Y)Case 2...End Select```See where this is going? Link to comment Share on other sites More sharing options...
totalwar235 Posted March 6, 2009 Author Share Posted March 6, 2009 @Riney:> Scripted tile> > ```> Case W/e> > Random = Rand(0,5)> > Select Case Random> > Case 1> Call PlayerWarp(Index, Map X, Y)> > Case 2> > ...> > End Select> ```> See where this is going?wait, you can make a case inside of a case? Link to comment Share on other sites More sharing options...
totalwar235 Posted March 6, 2009 Author Share Posted March 6, 2009 ok i just wrote the script but it will not work can someone show me what i screwed up?Case 3Random = Rand(0,2)Select Random CaseCase 0CallPlayerWarp(index, 31, 9, 0)Case 1CallPlayerWarp(index, 31, 30, 15)Case 2CallPlayerWarp(index, 31, 9, 30)End SelectEnd ifExit Sub Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted March 8, 2009 Share Posted March 8, 2009 @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 SubLemme 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 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