[MV] Custom Variables

MV – Custom Variables

Author: Soulpour777

DOWNLOAD (Dropbox)

What’s with this plugin?

This plugin allows you to create extra variables that are not handled by the default engine variables. This means these are variables you can manipulate aside from the default variables you have by default. You can create as many as you can.

It stores the variables in a list, starting from 0 on its counting.

To just access the value of a custom variable, do this on a script command:


where id is the id of the custom variable.

or do this on a plugin command:

cv val id

where id is the id of the custom variable.

Main Plugin Commands:

cv set index value

where index would be the number of the variable. Remember that counting starts from 0, not 1.
where value is the value of the variable.

For example:

cv set 0 10

this will set Custom Variable 0’s value as 10.

Other commands for other operations:

cv add index value
cv sub index value
cv mult index value
cv div index value
cv mod index value

where add = add custom variable with value
where sub = subtract custom variable with value
where mult = multiply custom variable with value
where div = divide custom variable with value
where mod = apply modulus on custom variable with value

If you want to check it via conditional branch, use the Conditional Branch and use the script option from tab 4 and write:

this.isEqualTo(index, value)
this.isGreaterThanOrEqual(index, value)
this.isLesserThanOrEqual(index, value)
this.isGreater(index, value)
this.isLesser(index, value)
this.isNotEqual(index, value)

where index is the number of the custom variable and value is the value you want the custom variable’s value to be compared of.

For example:

this.isEqualTo(0, 10)

What you are doing here is that you’re comparing the value of Custom Variable 0 to 10. Is custom variable 0’s value equal to 10?

You can also do this for string (only works for isEqualTo command)

this.isEqualTo(0, ‘Hi There’)

This will check if the value is equal to ‘Hi There’.

If you are going to place the custom variable’s value as a string or a word, use ” marks to it. Example:

cv set 0 ‘Tifa’

this would set Custom Variable 0’s value as Tifa.
Necromedes for the idea of this plugin.


6 Replies to “[MV] Custom Variables”

  1. Just wondering could I use this to basically have certain choices pull on it to give actors alignment points so to say like an approval system ex. choice one actor approves and get positive points, while choice two gives negative points.
    Let me know thanks.


  2. Dude I just came across your site, downloaded some plugins, tested them..
    And seriously, congratulations! This is just spectacular.. I’m no expert in RM nor programming.
    But I know how hard it is to do stuff like so. Your work has great value in the RM community.

    Thanks alot!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s