Makendo Posted February 27, 2009 Author Share Posted February 27, 2009 I remember I saw a script here somewhere.I tried search but found nothing.Can anyone help me out? Link to comment Share on other sites More sharing options...
kuroda Posted February 27, 2009 Share Posted February 27, 2009 i was looking too but theres nothing outside :/ i wanted too for my game. Link to comment Share on other sites More sharing options...
Fulou Posted February 27, 2009 Share Posted February 27, 2009 ```'.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.Sub BlockDir(Index)'warps player back to previous square'.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.:!:.Dim XaddDim YaddXadd = 0Yadd = 0Select Case GetPlayerDir(Index) Case 0 ' up Yadd = -1 Case 1 ' down Yadd = 1 Case 2 ' left Xadd = -1 case 3 ' right Xadd = 1End selectCall PlayerWarp(Index, GetPlayerMap(Index), Int(GetPlayerX(Index) + Xadd), Int(GetPlayerY(Index) + Yadd))End sub```Give it a try, calling it SHOULD send you back a square in the direction you came from.Backup your main.txt first, not tested it. Link to comment Share on other sites More sharing options...
Makendo Posted February 28, 2009 Author Share Posted February 28, 2009 So there's no way to do this without warping back?So how do I make it for certain directions by changing the warp? Link to comment Share on other sites More sharing options...
xeross Posted February 28, 2009 Share Posted February 28, 2009 if you add it on a tile players walks from left it warps you back 1 tile to left etc. isnt that what you want Link to comment Share on other sites More sharing options...
Makendo Posted March 1, 2009 Author Share Posted March 1, 2009 Well sometimes, lets say I want to have direction specific stuff. Like it only warping your back when you're facing forward and backwards. Link to comment Share on other sites More sharing options...
xeross Posted March 1, 2009 Share Posted March 1, 2009 Add some if statements and additional arguments 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