Question(s) of the day...
What is a Fiber and how can i yield one ?
What is a Fiber and how can i yield one ?
I know Tsukihime already answered this, but I thought that the answer could use some more explanation. Fibers are... relatively obscure, honestly, but what they do is essentially store code to be run that can be passed back and forth from the Fiber to whatever called it. When you create a new instance of the Fiber class, you pass it code to run -- usually in the form of a block, but not always. Once the Fiber is created, it does... absolutely nothing. In order to get the Fiber to do anything, you have to call the resume method on it, which will begin running the Fiber from the beginning of the code block passed to it. From there, the Fiber will continue to run this code until the end of the code block or until a call is made to Fiber.yield. When you call that, control is passed back to the caller of the Fiber until the resume method is called on the Fiber once more, at which point it picks back up where it left off (and the cycle continues).
Im sorry but ive read and re-read these lines about 20 times
I am not having any issues with it either.
Regex is very simple you can't keep track of things like number of times something occurs without using helper functions in ruby.
It's another library for game development, not a template.
Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/