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.

[Resolved] Town Portal type system

I was just wondering if there was a way to create an item that could create a portal back to the main town and then send them back after they re-entered the portal (like in Diablo 2).

P.S. I'm using Blizz-ABS and I haven't gotten any conditional branches to work with it. So let me know if you know one that will work under those conditions.
 
You can do with with event editing, can't you? When they warp back, set the player's X, Y and MapID variables. Then when they step back into the portal, send the player to those variables.
 
Yea its totally possible, if it were a skill i would create a skill called lik, Teleport Home and then a shell status effect for that skill called Teleporting Home and then a common event that teleports you home or xMap@xy coords when the status is inflected. But thats just me
 
It's not a script, it's a list of commands. Try something like this:
Code:
 @>Conditional Branch: Switch [Teleported] == Off
   @>Control Variables: [Player X] = Player's Map X
   @>Control Variables: [Player Y] = Player's Map Y
   @>Control Variables: [Player Map] = Map ID
   @>Transfer Player: [New Map, (X,Y)]
   @>Control Switches: [Teleported] = ON
  : Else
   @>Transfer Player: [Variable(Player Map), Coordinates(Player X, Player Y)]
   @>Control Switches: [Teleported] = OFF
  : End Processing
 

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