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.

Events not updating until keypress o_O

I finally got around to working on Pengzoda's AI for my ABS.
His event is several pages, each pages condition is a variable.
When his AI variable is at 0, he strafes around you. When it's at 1, he readies his weapon, then calls a script that decides his next action.
2-4 are various attacks, and 5 is his vulnerability after an attack.

All of the scripts and things work fine, but when he switches event pages....
It doesn't update until I press a key that has an effect assigned to it, like opening the menu, the debug menu, pressing the guard key or the attack key... The Hotkeys only work if they have a skill/item assigned to them.
I'm not sure what the problem is o_O I've tried it without the hotkey inputs in scene_map, I've disabled the anti-lag script, I've removed some of the PP things from the map.... Nothing.

I'm at a loss as to why this is happening x_x All the scripts and pages work, it just doesn't change pages until I press one of those keys... o____O
 
Still can't figure this out x_x
I can send a demo if someone wants it, I just have no idea what to look for to fix it, and can't continue work on my game until I find the problem x_x An ABS has no action if it waits until a keypress, you can even move around before pressing a key, dodging everything... x_x
 
Jaberwoky;277146 said:
Still can't figure this out x_x
I can send a demo if someone wants it, I just have no idea what to look for to fix it, and can't continue work on my game until I find the problem x_x An ABS has no action if it waits until a keypress, you can even move around before pressing a key, dodging everything... x_x

I'm honestly not sure if this will work or even where to put it but try adding this line of code after something in the script you're using.. I honestly don't know what the problem is specifically because I don't know about that script but I had an issue when changing a game variable manually through a script without the interpreter and this line fixed it:

Code:
$game_map.need_refresh
 
Yeah, already tried that, as well as refreshing the map straight through $game_map.refresh, and even the events themselves with $game_map.events[xx].refresh x.x

The script is basically just a bunch of input.press/push things that call common events, so that might be the cause... though it was working fine with other types of enemies before I started on zoda x.x;

The event for the wind slash he shoots is using the control variable event command and isn't updating either unless it hits you, so I'm not sure if it's the problem x_x
*goes to make a demo*
 
Ok, here's a demo.
http://www.mediafire.com/?eqiyiwqtmtn

Pengzoda's supposed to strafe around you and keep a safe distance, then attack depending on your position. Haven't finished a lot of it, but to get him to do the attack I -have- started on, just make sure that youre up against a wall or something, and zoda is facing down or downleft. Haven't gotten around to finishing the area checks for other directions, since I dunno if the distance is correct yet. What's happening is that he'll trigger and change the variable... but keep using the current event page until you press a key. So if you're up against a wall and in range, and hes still strafing, you'll need to press one of the keys the ABS is using: Shift/Z (guard), D (ABS menu), S (attack), A/Q/W if they're hotkeyed, the main menu key, or F9. Then he'll go to the next phase... and stop again, where you'll have to press another key x_x
Variable 234 is his AI phase variable, 75 is the variable for the wind slice, the button input is in Scene_Map, the button effects are the common events at the bottom of the list, to hotkey just highlight the skill/item in the ABS menu and press A/Q/W, left/right switches between skills/items/characters, the AI commands are in the pixel movement script, and most of zoda's actions are in the custom move routes rather than the event pages.... Think that's all there is to explain xD
 

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