[PLUGIN] CSV, CSV2Array, CSV2Dictionary

Post your completed addons to share with the community

Post » Thu May 19, 2016 2:13 am

Update

rex_csv plugin: add "action:add to" to increase value of a cell without read it back first.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Sat May 21, 2016 2:32 pm

Is there a way to move one cell right, relative to the last cell displayed? For example:

Global Number ActiveDialog = 1

On Group activated,
  • Set text to Dialog.At("FirstColumnWithDialog", ActiveDialog)
On 'next' button clicked,
  • If Dialog.At([One to the right of the Current Column], ActiveDialog) = ""
    • Set Group deactivated
  • Else
    • Set text to Dialog.At([One to the right of the Current Column], ActiveDialog)

I was hoping to use this to break up a single character's dialogue into smaller parts, but have them continue one after the other. Otherwise, the CSV is going to end up incredibly long and very thin.
B
14
S
4
G
4
Posts: 27
Reputation: 2,896

Post » Sat May 21, 2016 3:50 pm

Update

CSV plugin: add "Expression:PreviousCol" , "Expression:NextCol" , "Expression:PreviousRow" , "Expression:NextRow" to get previous/next of column or row name. ( sample capx )



@Evdog

Update rex_csv plugin and try these new features. You could save current row name to get the next (right) row name.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Sun May 22, 2016 1:49 am

Thanks man! It works exactly as I'd hoped ^_^

For those wanting to use this in the future, I typed: "Set text to CSV.At(CSV.NextCol(CSV.AtCol), ActiveDialogue)"
B
14
S
4
G
4
Posts: 27
Reputation: 2,896

Post » Sun May 22, 2016 2:16 am

Update

rex_csv plugin: now "Expression:PreviousCol" , "Expression:NextCol" , "Expression:PreviousRow" , "Expression:NextRow" could ignore the col or row input, it will use AtCol / AtRow by default.

Code: Select all
CSV.At("a", "c")
CSV.At( CSV.NextCol, CSV.AtRow )
CSV.At( CSV.AtCol, CSV.NextRow )

It looks like a cursor moving on grids of table.


@Evdog

I forgot that I had made expression:AtCol / AtRow. I will use them to be a default col or row input. So the expression might be :
Code: Select all
Set text to CSV.At(CSV.NextCol, ActiveDialogue)
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Sun May 22, 2016 5:23 am

Oh sweet! That makes things simpler!
B
14
S
4
G
4
Posts: 27
Reputation: 2,896

Post » Thu May 26, 2016 4:54 pm

Update

rex_taffydb plugin: if a querying does not have "Action:1. New" or "Condition:1. New", it will query from current queried rows (sample capx). Add "Action:1. New" or "Condition:1. New", if user wants to query from all rows of database.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Sat May 28, 2016 8:58 am

@rexrainbow How does one access a column or row by using its order number. Is there an expression to access the 5th column, then the 6th and so on? I want to be able to use the csv table like an array table some times.
B
22
S
7
G
1
Posts: 270
Reputation: 2,674

Post » Sat May 28, 2016 4:09 pm

Update

rex_csv plugin: add number index of columns/rows in "expression:At"

Image
Parameter "Col", "Row" in "Expression:At(Col, Row)" are string by default, or a number index in columns/rows. For example, CSV.At("MONKS", "DEF") is equal to CSV.At(2, 2) at above diagram.


@blurymind
Try this new version.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Sat May 28, 2016 4:49 pm

@rexrainbow You are awesome! That was quick and effective. Upgrading right away!

Now I can use some rows to trigger custom functions with parameters based on column index rather than column names that are in use by some other rows.
B
22
S
7
G
1
Posts: 270
Reputation: 2,674

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests