Guest Posted October 20, 2012 Share Posted October 20, 2012 > Put it below 'For i = 1 To Map.CurrentEvents'> > Maybe a dig? IDK, but I was doing this and saw the post so I figured I'd chime in even if it's obvious.Well its just a case of exiting out if the player is going to hit an event. Link to comment Share on other sites More sharing options...
Exvayate Posted December 16, 2012 Share Posted December 16, 2012 Hey guys, sorry for the necro on this thread, but I just wanted to let you know that Miguk's suggestion does indeed work.If you place the event chunk above the player tile chunk, it will allow players to walk through eachother but not through your NPCs/Events!So if you would like, Sekaru, I can post a modified version of your tutorial under the tutorial forums if you'd like! C: Link to comment Share on other sites More sharing options...
Hazanas Posted March 10, 2013 Share Posted March 10, 2013 Well, something strange is happening to me…I was using 2.3 and really wanted this function to work, so I did as it says, for some reason, it did not work, so I kept trying ALL options given here, after no success with any of them I tried to use a function where it did not check anything, just return a TRUE value...Still did not work, after being pretty annoyed I deleted the CheckDirection Function... I found that it still worked... so I decided to delete the entire modGameLogic file... AND STILL WORKING!So my question is, does this work only for 2.0? Do 2.3 read the BAS files or they are just decoration? What about 3.0? (I also tried other custom engines but since there seems to have some problems with authors I will just not mention them and focus on 2.3 and 3.0) Link to comment Share on other sites More sharing options...
blkcrow Posted March 10, 2013 Share Posted March 10, 2013 you can just put the loop in an if statement if the the map is safe the loop will not be executed but the rest of the sub will avoiding some of the bugs that have been reported```' Check to see if a player is already on that tileif Map.Moral <> MAP_MORAL_SAFE then For i = 1 To Player_HighIndex If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then If GetPlayerX(i) = x Then If GetPlayerY(i) = Y Then CheckDirection = True Exit Function End If End If End If Next iEnd If``` Link to comment Share on other sites More sharing options...
Hazanas Posted March 10, 2013 Share Posted March 10, 2013 I tried that, nothing.Inside my modGameLogic this is what is written rightnow (and I am not joking):> Hello! I am great! This file is useless ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)How can the engine still work??? I mean, I expected some kind of error of X lost variables and stuff like that, but the points is that all works perfectly fine inside the game… that is why I asked about the .BAS filesWhat I suspect is that the engine does not read those files, that could be the reason why game still works... but if it does not read them... then where is the information about all functions, vars, etc.? Link to comment Share on other sites More sharing options...
blkcrow Posted March 10, 2013 Share Posted March 10, 2013 have you compiled? Link to comment Share on other sites More sharing options...
Hazanas Posted March 10, 2013 Share Posted March 10, 2013 No, could you explain me how to? Link to comment Share on other sites More sharing options...
Matt Posted March 10, 2013 Share Posted March 10, 2013 With your client open in VB6, hit File >>> Make Client.exe Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2013 Share Posted March 10, 2013 > How can the engine still work??? I mean, I expected some kind of error of X lost variables and stuff like that, but the points is that all works perfectly fine inside the game… that is why I asked about the .BAS filesThinking logically for a moment, why would the files be there if they were unused? The BAS files store the module's code. You have a modGeneral.bas and a modGeneral in VB. Link to comment Share on other sites More sharing options...
Hazanas Posted March 11, 2013 Share Posted March 11, 2013 I compiled them, they working now, thx. Link to comment Share on other sites More sharing options...
DeathlyCreation Posted March 23, 2013 Share Posted March 23, 2013 How can I fix it from moving threw events? Or do I just remove this whole system? Link to comment Share on other sites More sharing options...
WiseRock Posted March 23, 2013 Share Posted March 23, 2013 There is a Walk through system in the Actual Event system![](http://i47.tinypic.com/1ox8is.jpg) Link to comment Share on other sites More sharing options...
DarkDino Posted April 9, 2013 Share Posted April 9, 2013 > How can I fix it from moving threw events? Or do I just remove this whole system?Move this:For i = 1 To Map.CurrentEventsIf Map.MapEvents(i).Visible = 1 ThenIf Map.MapEvents(i).x = x ThenIf Map.MapEvents(i).y = y ThenIf Map.MapEvents(i).WalkThrough = 0 ThenCheckDirection = TrueExit FunctionEnd IfEnd IfEnd IfEnd IfNextabove thisIf Map.Moral = MAP_MORAL_SAFE Then Exit Function Link to comment Share on other sites More sharing options...
Justin Knight Posted September 19, 2014 Share Posted September 19, 2014 Thank you for this tut! I changed if on safe map to if shift is held and I got exactly what I was looking for. 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