The code is literally a transliterated event though? I just cut some unnecessary punctuation and verbosity. What exactly makes it harder to understand?
This is exactly the same thing, but "uglyfied" to look like an event:
Code:
<> Control Variables: #0002 N Events = Random 1..2
<> Loop
<> Control Variables: #0001 Spawn Rarity = Random 0..100
<> If Spawn Rarity >= 95
<> Comment: Do the plugin thing
: End
<> Control Variables: #0002 N Events -= 1
<> If N Events == 0
<> Break Loop
: End
: Repeat Above
Now compare this to what I wrote before and tell me it's easier to read:
Code:
set n_events = random 1..2
loop
set spawn_rarity = random 0..100
if spawn_rarity >= 95
spawn(<ID>)
end
n_events -= 1
if n_events == 0
break loop
end if
end loop
You people have some serious prejudice against code, smh.
Hehe, not prejudice, I'm just dumb. I tried to learn how to code for XP once and was a nightmare. It never made sense for me. I tried to find some videos on youtube to learn js for MZ but the guy in the video started talking about a lot of stuff that didn't make sense for me or anything so I gave up. (also the audio was terrible and the accent was hard for me :/)
I can understand now that you put it in a "event way", but it's really hard for me. Not sure if it's because of adhd or whatever hehe. But thank you! I can't understand events as well, haha. I mean, I know how they work and etc, but I have to keep checking them time after time to see if I understood the process. That's why I had the looping problem at first. Sorry
😅 (usually I open the makers to make maps with the tileset, making a game is just consequence haha)
Well I think everyone has helped me already and I've figured out the problem as well, so I think it's okay to close this thread
🙂