![]() |
One-time/otherwise changing script using IFs and SRAM/RAM data
Complete newbie here. Well, not that complete, but still...
How would I go about making a one-time/otherwise changing script that checks to see if the player has triggered any events—when said as yes, the current script continues, when no, it continues another way. Is this possible? Well, of course it is, you see it all the time... but how do I do it? Thanks... |
if "event_done" --> do regular stuff
if "should_run_event" --> run event, and in the end, set 'event_done' bit if "don't_run_event_yet" --> do regular stuff |
Quote:
Thanks BTW. |
I have PROBABLY gotten bits set, but my trigger won't... well, trigger. Ach!!
Here are the trigger settings: Flags: 1... why does this only go up to FF if there are flags with 4 octets!??! Unknown 1: 0, umm... yeah. Script pointer: 7750 Unknown 2: 0...? Unknown 3: 0... Here is the trigger's script: #org 0x183750 '----------------------------------- checkbit1 0x4306 if true 0x701A ' 0x18301A setbit1 0x4306 3callasm 0xE07E04 end #org 0x18301A '----------------------------------- setlasttalked 0x0 2writetext 0x6AA0 ' 0x182AA0 showemote 0x6 0x0 0x4 showemote 0x0 0x0 0x2 end #org 0x182AA0 = \h01: [PLAYER]!!\e If it matters, here's the map script header thingy I was working on, when I still thought that map script headers were just scripts that ran on map entry (how neat would that be...? :( ) *insert the stuff that was pointed to by 7750, seen above* Map script bank 0x60. |
Trigger triggers. Everything is awesome, except—the bit I chose, 4B06, does NOT GET SAVED into SRAM! Does into RAM, so resetting VBA/my GBC works etc, but turning off and on again resets the bit.
|
| All times are GMT -8. The time now is 2:31 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.