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.

Scripting help

I have an ABS script, and I wanted to "delay" it activating.

so that for a set time in the game it's the reguler battle system, then after a certain time it activates the ABS

ex:
boss fight = reguler battle style/ ABS 2
after and before fight: ABS 1
 
Time.

Fictional time, based on how far into the game you've gotten... or Real Time, based on the number of seconds/minutes actually spent?

Fictional Time merely needs you to set a switch:
If progress >= 20
0001: Switch-ABS = ON
end

Otherwise, there are a number of Day/Night scripts still floating out there. Those require you to be plugged into the Common Events section of the database, as parallel processes.

Try Here for Day Night Scripts.
 
Ah, that's the beauty of 'parallel process' common events.

Let's assume that you're using regular events to add '1' to a variable called
0001: Game progress

Now, have a common ev. parallel process that checks the 'game's progress'
Comment: If, your game's progress reaches a certain point...
<> if [0001: Game progress] >= 20
Comment: Then turn your ABS switch on...
<> Switch: [0001: ABS Switch] = On
<> End if

Now, have another parallel process that only works when '0001:ABS Switch' is ON.
<> Var: [0002: TimeCounter] = 0
<> Do
<> If [0002: TimeCounter] >= 20
<> Break Loop
<> End
<> Wait 1.0 seconds
<> Var: [0002: TimeCounter] += 1
<> Loop
<> Sw: [0002: ABS Turned On] = ON

Basically, you'd be using 1 variable to control your game's progress...
And one switch to tell the system that the game's progress has reached
the point when the ABS will start to be used...
And another variable to count the seconds that pass before the ABS
will actually take place (your delay)...
And finally, a last switch that turns the Action Battle System ... ON!

It's been a while, so I'm fairly certain that my commands aren't all correctly written... just closely approximated.
 

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