Posts: 11,228
Threads: 648
Joined: May 2009
SDK DVV Add-On:
Event Comment Supplemental
Version: 1.2
Introduction
Dear lord! DerVVulfman wrote an SDK script???
Based on material garnered from the RMXP SDK, this script can retrieve a list of comments from an event's page and obtain desired information from a list of comments.
Because it is enclosed within its own SDK module block and doesn't refer to any other SDK methods or classes, it does not require the SDK to function. It can be used by itself.
Script
The Script
Instructions
Got plenty in the script's comments that scripters should understand. If you're not a scripter... this isn't really for you.
Thanks
To Zeriab, who requested a measure to get only the first batch of comments after reaching the first non-comment command.
Compatibility and Installation
While contained within a SDK module, this system does not necessarily need the SDK. But it should be compatible with nearly every version of the RMXP SDK and can be used without.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 112
Threads: 26
Joined: May 2009
Can you add a method that retrieves the first chunk of comments. I.e all comment blocks until the first non-comment event command.
*hugs*
Posts: 11,228
Threads: 648
Joined: May 2009
BUMP
to Version 1.1
Hehehe... it didn't take long, did it?
Okay, Zeriab. You can now use the same
SDK.event_comment_list statement to check on just the first block of comments, separated by the first non-comment that occurs. You can even make sure that it has a 'trigger' like before, so even IF it stops at the first non-comment, the block still needs the trigger text.
list = SDK.event_comment_list(event, trigger, true)
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 112
Threads: 26
Joined: May 2009
Awesome, thanks :D
A great feature when considering performance for big events.
*hugs*
Posts: 71
Threads: 4
Joined: Sep 2009
Better than you know, Zeriab. It's me, Dervv... just in case.
I redid my version of MrMo's ABS with this, and now I have 'default' values for the evented battlers. I can leave out things in the events, have the comments in whatever order and not so ridgid... whatever. This makes the ABS's setup of enemies work nicely.
DerVVulfman's 'regular Joe' account for testing and permissions use.
Who watches the Watchmen?
Posts: 11,228
Threads: 648
Joined: May 2009
BUMP
to Version 1.2
Unexpected, I found a glitch with the script. If the retrieved data had a space within, such as saying "Level3 Fighter", it would merely display the text up to the first space. Thus, only the phrase of "Level3" would be retrieved.
This had only just been discovered. And now... fixed.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links