- Joined
- Oct 27, 2015
- Messages
- 54
- Reaction score
- 10
- First Language
- English
Ok, this is a weird problem and it's part of weather system I concocted. (No, no Plugins with this-- I'll eat my hat before using a plugin to do what these events are.)
The Bug: Sometimes, not all the time, when I have my hero enter a building, the weather effects don't stop, but they should.
My theory: A. I'm doing something wrong. B. Lag.
The Events:
That's the series of Common Events.
I have all of my Doors and entrances to caves/dungeons etc, set to call the "Weather Cancel" Event
(And the Reverse for exits, etc-- using Weather Restore where Weather Cancel was.)
Now, by all means, this system WORKS (unlike the prototypical system I had in 2K3, which had more bugs than the neglected garbage can 4 weeks old down the street.)
Until, occasionally, I'll enter a building and boom, it's still raining.
If I enter/exit, it rights itself.
But if I just go on about my business in said building, the glitched effect will continue as though it was normal.
I can't figure out solving this one.
Is this just the game lagging and causing hang ups in my events?
The Bug: Sometimes, not all the time, when I have my hero enter a building, the weather effects don't stop, but they should.
My theory: A. I'm doing something wrong. B. Lag.
The Events:
Common Event 1: Weather Core
Type- Parallel
Switch-- Weather Switch
(some comments are ##### as they're very much notes for myself, and contain information regarding my game's world)
'Comment: Controls the System'Comment: -----------'Comment: Skips if NecessaryIf [Switch
o Not Randomize] is OnJump to Label: End. end BranchIf [Switch:Controlled] is OnJump to Label: Endend BranchIf [Switch
reset] is OnJump to Label: Endend BranchIf [Switch:Instant Randomizer] is OnJump to Label: Randomizerend BranchIf [Switch: Wait Doesn't Stop] is OnJump to Label: Do Not Resetend Branch'Comment: Reset Duration on Load and at new cycle. Variable [Duration Randomizer] = Random 60...180Variable [Duration Counter] = 0'Comment: Waits for Random DurationLabel: Do Not ResetIf [Switch: Wait Doesn't Stop] is OnSwitch: [Wait Doesn't Stop] = Offend BranchLoopIf [Variable: Duration Counter] >= [Variable: Duration Randomizer]Break LoopElseWait 100 FramesVariable: [Duration Counter] +1end Branchend Loop'Comment: Sets EffectsLabel: RandomizerSwitch: [Instant Randomizer] = Off'Comment: Sets Effect Based on Location Variable, and randomize it based on %s.If [Variable: Location Variable = 1]'Comment: ########Variable: [Effect Randomizer] = Random 1 ... 100If [Variable: Effect Randomizer] >= 96'Comment: #######Variable: [Effect] = 6Jump to Label: End. end BranchIf [Variable: Effect Randomizer] >= 86'Comment: #######Variable: [Effect] = 5Jump to Label: End. end BranchIf [Variable: Effect Randomizer] >= 76'Comment: #######Variable: [Effect] = 3Jump to Label: End. end BranchIf [Variable: Effect Randomizer] >= 51'Comment: #######Variable: [Effect] = 1Jump to Label: End. end BranchIf [Variable: Effect Randomizer] <= 50 'Comment: #######Variable: [Effect] = 4Jump to Label: End. end Branchend Branch [##-- This repeats a few times with different Randomizer values and Effect values]Label: End. If [Switch: Preset] is OnSwitch: [Preset] = Offend BranchIf [Switch: Outside] is OnCommon Event: Weather Effectsend BranchCommon Event 2: Weather Effects
Type- Parallel
Switch-- Outside
(Since this code is all repetitive I'm just using 3 examples, but it's really just what effects are and how to apply them.)
If [Variable: Effect] = 1 Switch: [Thunderstorm] = OffTint Screen: 0,0,0,0 210 FramesSet Weather Effect: None, 210 FramesFade Out BGS: 3 secondsend Branch...If [Variable: Effect] = 4Switch: [Thunderstorm] = OffTint Screen: -25, -25, -25, 60 210 FramesSet Weather Effect: Rain, 7, 210 FramesWait: 21 FramesPlay BGS: Rain 3 (70, 100, 0) end Branch...If [Variable: Effect] = 6Tint Screen: -25, -25, -25, 60 210 FramesSet Weather Effect: Storm, 8, 210 FramesWait: 21 FramesPlay BGS: Storm 2 (85, 90, 0)Wait: 189 FramesSwitch: [Thunderstorm] = Onend BranchCommon Event 3: Thunderbolts!
Type- Parallel
Switch-- Thunderstorm
Loop [#I Don't know why I have this loop, but for some backwards reason it never wanted to agree with me with out it.]Variable: [Thunderbolt Randomizer] = Random 15...720Variable: [Thunderbolt Looper] = 0LoopIf [Variable: Thunderbolt Looper] >= [Thunderbolt Randomizer]Play SE: Thunder 9 (100, 80, 0)Flash Screen: (187, 187, 255, 225) 32 Frames (Wait)Break LoopElseWait 1 FrameVariable: [Thunderbolt Looper] +1end Branchend Loopend Loop Common Event 4: Weather Cancel [i think this maybe screwing up, maybe?]
Type- Called Only/None
Switch: [Thunderstorm] = OffSwitch: [Outside] = OffTint Screen: (0,0,0,0) 1 Frames (Wait)Set Weather Effect: None 1 FramesFade Out BGS: 1 SecondSwitch: [Wait doesn't Stop] = OnCommon Event 5: Weather Restore
Type- Called Only
Switch: [Outside] = On(**See "Weather Effects" Event, but all timings are minimized: 1 Frame for Tint/Effect, BGS in 1s, no Waits)
Type- Parallel
Switch-- Weather Switch
(some comments are ##### as they're very much notes for myself, and contain information regarding my game's world)
'Comment: Controls the System'Comment: -----------'Comment: Skips if NecessaryIf [Switch
Type- Parallel
Switch-- Outside
(Since this code is all repetitive I'm just using 3 examples, but it's really just what effects are and how to apply them.)
If [Variable: Effect] = 1 Switch: [Thunderstorm] = OffTint Screen: 0,0,0,0 210 FramesSet Weather Effect: None, 210 FramesFade Out BGS: 3 secondsend Branch...If [Variable: Effect] = 4Switch: [Thunderstorm] = OffTint Screen: -25, -25, -25, 60 210 FramesSet Weather Effect: Rain, 7, 210 FramesWait: 21 FramesPlay BGS: Rain 3 (70, 100, 0) end Branch...If [Variable: Effect] = 6Tint Screen: -25, -25, -25, 60 210 FramesSet Weather Effect: Storm, 8, 210 FramesWait: 21 FramesPlay BGS: Storm 2 (85, 90, 0)Wait: 189 FramesSwitch: [Thunderstorm] = Onend BranchCommon Event 3: Thunderbolts!
Type- Parallel
Switch-- Thunderstorm
Loop [#I Don't know why I have this loop, but for some backwards reason it never wanted to agree with me with out it.]Variable: [Thunderbolt Randomizer] = Random 15...720Variable: [Thunderbolt Looper] = 0LoopIf [Variable: Thunderbolt Looper] >= [Thunderbolt Randomizer]Play SE: Thunder 9 (100, 80, 0)Flash Screen: (187, 187, 255, 225) 32 Frames (Wait)Break LoopElseWait 1 FrameVariable: [Thunderbolt Looper] +1end Branchend Loopend Loop Common Event 4: Weather Cancel [i think this maybe screwing up, maybe?]
Type- Called Only/None
Switch: [Thunderstorm] = OffSwitch: [Outside] = OffTint Screen: (0,0,0,0) 1 Frames (Wait)Set Weather Effect: None 1 FramesFade Out BGS: 1 SecondSwitch: [Wait doesn't Stop] = OnCommon Event 5: Weather Restore
Type- Called Only
Switch: [Outside] = On(**See "Weather Effects" Event, but all timings are minimized: 1 Frame for Tint/Effect, BGS in 1s, no Waits)
I have all of my Doors and entrances to caves/dungeons etc, set to call the "Weather Cancel" Event
Code:
Fadeout ScreenCommon Event: Weather CancelTransfer Player: --,--Wait 3 FramesFadein Screen
Now, by all means, this system WORKS (unlike the prototypical system I had in 2K3, which had more bugs than the neglected garbage can 4 weeks old down the street.)
Until, occasionally, I'll enter a building and boom, it's still raining.
If I enter/exit, it rights itself.
But if I just go on about my business in said building, the glitched effect will continue as though it was normal.
I can't figure out solving this one.
Is this just the game lagging and causing hang ups in my events?
