SDK DVV Add-On: Event Comment Supplemental
#1
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...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#2
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*
[Image: ZeriabSig.png]
Reply }
#3
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...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#4
Awesome, thanks :D
A great feature when considering performance for big events.

*hugs*
[Image: ZeriabSig.png]
Reply }
#5
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?
Reply }
#6
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...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Event Spawner Fixes DerVVulfman 8 16,947 01-02-2018, 05:48 AM
Last Post: DerVVulfman
   ELSA (Event Layering Script Advance) JayRay 0 5,983 02-25-2015, 04:15 AM
Last Post: JayRay
   Permanent Event Erase DerVVulfman 2 6,203 04-09-2013, 03:53 AM
Last Post: DerVVulfman
   Event Transparency DerVVulfman 5 11,896 03-09-2013, 05:42 AM
Last Post: DuongCool
   Call Map Event DerVVulfman 0 5,328 12-06-2011, 04:42 AM
Last Post: DerVVulfman
   Sue's Battle Comment Helel 0 6,067 12-12-2009, 10:20 AM
Last Post: Helel
   Common Event Self Variables XP PK8 0 857 09-17-2009, 04:57 AM
Last Post: PK8
   Call Event XP woratana 0 4,402 01-22-2009, 12:21 PM
Last Post: woratana
   Event Messages & Tail Indicator ParaDog 0 4,552 03-04-2008, 04:44 AM
Last Post: ParaDog
   Anti Event Lag Script Near Fantastica 0 4,309 03-02-2008, 07:38 AM
Last Post: Near Fantastica



Users browsing this thread: 2 Guest(s)