i wantet to do a map based on final fantasy sagas
i alleady saw some realy good videos on youtube so i know its possible
what i want to know:
how is it possible to make fights randomly triggered in an area
how to make attacking based on a bar (atb)
how to disable some parts of a map to make cameras free movable without laggs
how to make realy good cinematics i allready know the basic cinematics
i allready tryed to search some stuff but i didnt found anything i could use
maybe someone can help me with the project or can give me some help with it
I have yet to explore the world of triggers, but about making random fights. You can make random units, within an array, spawn at random Points or Regions. So I assume you could place a region on your map, and have an array of different monsters or monster groups, and maybe make the game to choose a random number of seconds, could be min. 1 max. 10. And then pick a random monster group, and run another trigger, the one that is the actual fight. And the trigger should also always check and run only if a player is in the region :)
I do not know if that helped, I somehow doubt it, since that was pure speculations, as said, I have yet to work with triggers. But it was a fun speculation! And I believe is sounds very logical, unless I don't make sense. (English is my third language).
Edit: So, player enters region -> run Random Fight Trigger -> pick time interval -> time ends -> pick a monster group (or three separate monsters) -> run Fight Trigger with triggering player.
yes i think too that i need to make a trigger for getting different types of mobs randomly + an region enter trigger + fight combat trigger
but i dont know what to put in there thats the problem i think the cinematics are the last problem
first i need to get the random fight sequence finish after i will do the combat system and after that i will create the map with story etc
Hm, I would think it would look something like this: (check the attach)
In the other trigger there should of course be a lot more, but I do not know enough to make it right. But I would think it would look something like that.
You should probably have made a fighting area, where you place pointers so you can call those in the triggers and create enemies on the desired pointers, will moving your hero(s) to his point. And then run the next trigger. Oh forgot to run the second trigger in the first trigger/pic.
You could make it displacement based as well. Generate a random displacement requirement. Everytime the character moves, increment the displacement based on units moved. When it hits the requirement generate the random battle. This system would work even if you run in circles if done correctly. If you stay still, nothing happens. The only regions you will need are regions to check which zone the encounter occured in, these would be flagged upon entry to the region.
nice i got it work its a bit more complex but the basics are the same like urs
now i can work on the dialogs for fight hehe very nice thanks
if u want i can share the work with u
Random number generator. Whats the shortest distance in units and longest distance in units. Lets just say for example its 10 and 20. All you need to do is generate a random number between 10 and 20. Then everytime your unit moves (Can also be done as periodic event), have a counter that keeps track of how far you've moved (You will need to keep track of the points at where the unit was before movement, and the distance its at after movement. Each time movement is detected, ). When the counter exceeds or is the same as the random number you generated run the random fight.
So if the random number is 15. I have to walk 15 units before the battle triggers.
Easiest way to do the movement tracking trigger is with a periodic timed trigger that checks the unit position every 0.5 seconds or something like that. Then calculate the distance. Between the last point at the new point.
Then set the new point to your last point.
Event: Every 0.5 seconds
Trigger:
Distance = Distance between lastpoint and current point.
Lastpoint = Newpoint
It would be better if you can make a trigger that only activates when you move though.. Periodic timers have a lot of redundancy (They still fire even if there's no movement).. And thats going to eat up part of your processor power unnecessarily. How to do this, I'll leave it to you to figure out cos I haven't tried myself, thus, I'm not sure.
hm somethings weard here
move to fight
Events
Timer - timer region battle 1 expires
Local Variables
Conditions
(Merc - War Pig (Merc Marine) [11.96, 11.89] is in Region 004) == true
Actions
Unit - Turn Merc - War Pig (Merc Marine) [11.96, 11.89] Movable state Off
Camera - Make the camera look at ((Position of Merc - War Pig (Merc Marine) [11.96, 11.89]) offset by (9.0, 16.0)) for player 1 over 4.0 seconds with 70% initial velocity, 20% deceleration
Camera - Shake the camera for player 1 for 3.2 seconds, with strength 0.5, frequency 2.0 Hz, and 100.0% randomness (Position: Target, Direction: Z)
General - Wait 4.5 Game Time seconds
Unit - Create 1 Marine for player 1 at (Position of Merc - War Pig (Merc Marine) [11.96, 11.89]) facing 270.0 degrees (No Options)
Unit Group - Add (Last created unit) to move after battle
Unit - Move Merc - War Pig (Merc Marine) [11.96, 11.89] instantly to (Point 001 facing 45.0 degrees) (No Blend)
Unit - Turn Merc - War Pig (Merc Marine) [11.96, 11.89] Paused state On
Camera - Apply middle battle start for player 1 over 0.1 seconds with 100% initial velocity, 0% deceleration, and Don't Include Target
General - Wait 0.3 Game Time seconds
Camera - Apply kampf wüste for player 1 over 5.0 seconds with 100% initial velocity, 0% deceleration, and Don't Include Target
Camera - Lock camera input for player 1
General - Wait 7.0 Game Time seconds
Trigger - Run dialog out of battle (Check Conditions, Don't Wait until it finishes)
Unit - Create 1 Marine for player 10 at Point 004 facing 270.0 degrees (No Options)
Unit Group - Add (Last created unit) to unit group region 1
Unit - Turn (Last created unit) Movable state Off
Unit - Turn (Last created unit) Paused state On
Unit - Create 1 Marine for player 10 at Point 006 facing 270.0 degrees (No Options)
Unit Group - Add (Last created unit) to unit group region 1
Unit - Turn (Last created unit) Movable state Off
Unit - Turn (Last created unit) Paused state On
Unit - Create 1 Marauder for player 10 at Point 005 facing 270.0 degrees (No Options)
Unit - Turn (Last created unit) Movable state Off
Unit - Turn (Last created unit) Paused state On
Unit Group - Add (Last created unit) to unit group region 1
the merc marine does not facing the direction i tell him hes allways facing the same direction after moving
someone knows how to fix?
Look for a function, make unit face point. Use that. You'll need to pick a point behind your enemies to give the illusion that your character is facing the enemies.
Are you doing it every single time after he attacks? Its expected he will face the enemy, so after each attack, the function needs to be called to make him reface the original direction.
hey guys i got a question
i wantet to do a map based on final fantasy sagas i alleady saw some realy good videos on youtube so i know its possible
what i want to know:
how is it possible to make fights randomly triggered in an area
how to make attacking based on a bar (atb)
how to disable some parts of a map to make cameras free movable without laggs
how to make realy good cinematics i allready know the basic cinematics
i allready tryed to search some stuff but i didnt found anything i could use maybe someone can help me with the project or can give me some help with it
@AluCardvanHellsing: Go
I have yet to explore the world of triggers, but about making random fights. You can make random units, within an array, spawn at random Points or Regions. So I assume you could place a region on your map, and have an array of different monsters or monster groups, and maybe make the game to choose a random number of seconds, could be min. 1 max. 10. And then pick a random monster group, and run another trigger, the one that is the actual fight. And the trigger should also always check and run only if a player is in the region :)
I do not know if that helped, I somehow doubt it, since that was pure speculations, as said, I have yet to work with triggers. But it was a fun speculation! And I believe is sounds very logical, unless I don't make sense. (English is my third language).
Edit: So, player enters region -> run Random Fight Trigger -> pick time interval -> time ends -> pick a monster group (or three separate monsters) -> run Fight Trigger with triggering player.
Just paste your post into word and press F7. It will reveal all you need to know!
@DisAs7ro: Go
nice help
-@GodsFury: Go
yes i think too that i need to make a trigger for getting different types of mobs randomly + an region enter trigger + fight combat trigger
but i dont know what to put in there thats the problem i think the cinematics are the last problem first i need to get the random fight sequence finish after i will do the combat system and after that i will create the map with story etc
@AluCardvanHellsing: Go
Hm, I would think it would look something like this: (check the attach)
In the other trigger there should of course be a lot more, but I do not know enough to make it right. But I would think it would look something like that.
You should probably have made a fighting area, where you place pointers so you can call those in the triggers and create enemies on the desired pointers, will moving your hero(s) to his point. And then run the next trigger. Oh forgot to run the second trigger in the first trigger/pic.
Hope any of this helps just a tiny bit!
yea thats a nice solution wasnt thinking about timers i think this will do the work for the random fights ima try this out now
@AluCardvanHellsing: Go
You could make it displacement based as well. Generate a random displacement requirement. Everytime the character moves, increment the displacement based on units moved. When it hits the requirement generate the random battle. This system would work even if you run in circles if done correctly. If you stay still, nothing happens. The only regions you will need are regions to check which zone the encounter occured in, these would be flagged upon entry to the region.
nice i got it work its a bit more complex but the basics are the same like urs now i can work on the dialogs for fight hehe very nice thanks if u want i can share the work with u
@FuzzYD: Go
sounds nice too becouse at the moment i get in battle even if i dont walk
just one problem i dont know how i create a displacement requirement maybe u can explain me how to?
@AluCardvanHellsing: Go
Random number generator. Whats the shortest distance in units and longest distance in units. Lets just say for example its 10 and 20. All you need to do is generate a random number between 10 and 20. Then everytime your unit moves (Can also be done as periodic event), have a counter that keeps track of how far you've moved (You will need to keep track of the points at where the unit was before movement, and the distance its at after movement. Each time movement is detected, ). When the counter exceeds or is the same as the random number you generated run the random fight.
So if the random number is 15. I have to walk 15 units before the battle triggers.
Easiest way to do the movement tracking trigger is with a periodic timed trigger that checks the unit position every 0.5 seconds or something like that. Then calculate the distance. Between the last point at the new point. Then set the new point to your last point.
Event: Every 0.5 seconds
Trigger:
Distance = Distance between lastpoint and current point.
Lastpoint = Newpoint
It would be better if you can make a trigger that only activates when you move though.. Periodic timers have a lot of redundancy (They still fire even if there's no movement).. And thats going to eat up part of your processor power unnecessarily. How to do this, I'll leave it to you to figure out cos I haven't tried myself, thus, I'm not sure.
hehe i understand now but it seems to be difficulty i will try it out maybe i can find the stuff u talk about if not i will do it with regions
the only things i need to learn now is how to make the units not attack each other and creating the battle menue
@AluCardvanHellsing: Go
Alright, good luck on that. To stop attacking, Just pause the units. Theres a function that lets you do that. It stops all fidgeting and the such.
Look for a function, make unit face point. Use that. You'll need to pick a point behind your enemies to give the illusion that your character is facing the enemies.
@AluCardvanHellsing: Go
Are you doing it every single time after he attacks? Its expected he will face the enemy, so after each attack, the function needs to be called to make him reface the original direction.
@AluCardvanHellsing: Go
Ah, I see. You might wanna post the trigger so others could take a look and potentially help solve the problem >_>