Plugin parameters = plugin variables?

Sir_Titas

Villager
Member
Joined
Jul 22, 2013
Messages
14
Reaction score
0
First Language
english
Primarily Uses
N/A
i have an issue with a plugin i am trying to develop for myself, i know how to make a plugin variable equal a @param, but what i am having trouble with is the other way around

I have a parameter @param date and i want it to equal var d which is equal to date.getDate()

The parameter is a @type variable[]

Does anyone know how i can accomplish this task

Thanks in advance
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,602
Reaction score
1,933
First Language
English
Primarily Uses
RMMV
What are you trying to do? I can't imagine any scenario where you would need to assign a value to a plugin parameter other than the one that was entered in the plugin setup.
 

Sir_Titas

Villager
Member
Joined
Jul 22, 2013
Messages
14
Reaction score
0
First Language
english
Primarily Uses
N/A
i am trying to get the system date and put it in a variable for ingame events
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,815
Reaction score
1,275
First Language
EN
Primarily Uses
RMMZ
With plugins there's:
  • The author - you in this case;
  • Users - developers using your plugin; and
  • Players - people playing the game.
Parameters are for users to customise the plugin's behaviour without having to edit the plugin. :)

In this case it sounds like you just want to assign a variable without referencing the plugin parameters, e.g.
JavaScript:
var date = Date.now();
More info on the Date object here~
 

Sir_Titas

Villager
Member
Joined
Jul 22, 2013
Messages
14
Reaction score
0
First Language
english
Primarily Uses
N/A
Ok thanks for that
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

12 done, 4-5 started. Now that the weekend is over, things will sloooowwwww down again proabably.
when you're completely done with someone's crap lol...
Ami
--- Survival For RPGist Part 3 ---

F.Healer: Here it is,I made the Simple Sandwich
Survivalist
: it's so Delicious!
Chef: Here you Go! My Gourmet Steak.
Survivalist: It's Super Delicious,Too!
F.Mage: I Made it for you!
F.Healer: Uhh...Charcoal?
F.Mage No,It's a Toast!
Chef: Did you Let it in 10 Minutes?
F.Mage: Maybe?

Forum statistics

Threads
103,032
Messages
996,809
Members
134,507
Latest member
juegostudios
Top