Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Diablo 2 Waypoints v1.1 problem

This is a great script but I keep having a problem..

    @acts[0] << ["Home", 5, 3, 3] # This is the first waypoint. Its added to act 1 (with index 0) and its act index is 0.
    @acts[0] << ["Marbloteth", 9, 21, 4] # This is the second waypoint added to act 1. Its act index is 1.
    @acts[0] << ["Battle Arena", 17, 21, 39]
    @acts[0] << ["Accessory Island", 33, 0, 3]
    @acts[0] << ["Party Member Rental House 1", 41, 17, 13]
    @acts[0] << ["Port Town", 37, 12, 35]

This is what I'm using, they are all correct except the Party Member Rental House 1. I counted the maps to which one it was and it says it can't find  map 41. When I change it to 40, it goes to the map before it though. Any help?

Thank you for taking the time to look.
 
First suggestion, are you certain the map is number 41? after you delete a map, later map numbers don't go back down. So if you say, deleted an old map which was previously 41, making some other map 41. That newer map is still 42 on your map list, not sure how that script is affected though...mind linking to it?
 
I think you should basically right click the target map, select Map Options. Then look in the titlebar of this window. It should say: Map Name : ID:041 (or whatever the ID is). Change 41 into the respective id. In many occasions, my maps had ids 1-6 and then suddenly 21. This is because maps are deleted along the way of the project, as mentioned by Beran, the id of maps stays the same, but the new ones take up the ids of those deleted. So if I make a map with what said earlier, it would get id 7. Makes sense?

Hope this works.
 
Ok, thank you both, I figured out what the problem was before I signed back into here (been playing Diablo hahah) but I had no idea of how to check which map it was, so it's working now, thank you both very much for your input!  :lol:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top