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.

Need help with ZTBS

I need help with Zenith's tactical battle system. In a map there are characters walking around at random movement and when they touch you you fight them in Zenith's Tactical Battle System. How do I define the maps so you teleport after the battle to the exact spot the battle started?
 

wlzza

Sponsor

Before you tp to the battle map, you need to create 3 variables in the event you touch to fight. Firstly, set a variable to Map ID. Secondly, set a second variable to Player's Map X. Lastly, set the third variable to Player's Map Y.

After the battle has finished, tp the player back to the original location using the variables (above).
 
wlzza;148923 said:
Before you tp to the battle map, you need to create 3 variables in the event you touch to fight. Firstly, set a variable to Map ID. Secondly, set a second variable to Player's Map X. Lastly, set the third variable to Player's Map Y.

After the battle has finished, tp the player back to the original location using the variables (above).

I'm sorry. I don't understand how to set a varible to Map ID. (sorry)
 

Mac

Member

If you want it to work exactly to the point of where you was before the battle...then instead of putting a specific co-oridnate you would need to create a variable for it to be stored in, so basically you would need to store the x,y location variable before the fight and then refer to it after thhe battle on the map...but i've got stuff to do atm so i can't help right yet...try and look for the syntax for store location y and x.
 

wlzza

Sponsor

Before you tp to the battle map, you need to create 3 variables in the event you touch to fight. Firstly, set a variable to Map ID. Secondly, set a second variable to Player's Map X. Lastly, set the third variable to Player's Map Y.
http://geocities.com/jinzo_no/v1.jpg[/img]

http://geocities.com/jinzo_no/v2.jpg[/img]

After the battle has finished, tp the player back to the original location using the variables (above).
http://geocities.com/jinzo_no/v3.jpg[/img]
 

Mac

Member

Umm wlzza it won't work like that for him, it all has to be in script, you will need to find the code name for store y and x and store it under map defined for the next map co-ordinates.
 

wlzza

Sponsor

It could be that I misunderstood his question.

What I thought:

MAP 1: event that is at random movement. Once touched will memorise location and tp player to battle map.

MAP 2 Battle: Fight! what else. After battle, under the common event "Victory" tp player back to original location from MAP 1.
 
what i wanted was that after the fight you go back to exact spot where the fight started. So what I need to do is make a varible called X and another called Y, then in the map defining make the cordinets say X and Y? Or say I made varible 1 X and Varible 2 Y would I have to define it as 1 and 2? Help.
 
So you have roaming events that use Player Touch to teleport them to a battle, right?

In the event, before you use the Transfer Player option, set the three variables (Map ID, Player Map X and Player Map Y).

I'm not sure how the ZTBS works, exactly, but I assume that you transfer the player to another map (a battle map) for the fight. After you defeat all the enemies, use the Transfer Player option to transfer them back to the three variables you set.
 
that's not how it would would work because you have to define the battle map saying where you want to go after the battle with numbers so I want to know what i have to say for map defining to go to the same place the battle started.
 
Oh ok. I took a quick look at the ZTBS and it looks like you would probably have to script a 'get X' and 'get Y' in order to teleport them back to that spot.

I am terrible at scripting, though. Sorry.
 

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