Plugin parameters = plugin variables?

Sir_Titas

Villager
Member
Joined
Jul 22, 2013
Messages
15
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,604
Reaction score
1,948
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
15
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,940
Reaction score
1,392
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
15
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



I've been experimenting with improved memory management again, which allowed me to include items to increase player path length. These are both 44 grid spaces long, and stable. :LZSexcite:
I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!
Stream will be live shortly! I am going to be playing some Among Us! Feel free to drop by!
Ami
tv program always get the ratings (it's the reason why drama series has 1000+ episode),also full and nonsense of censorship (weird blur, a scene getting cut because the unconvenient viewer,but it unconvenient to me either. you never see what the original is)

i know the reason is to take cover the viewer from the negative thing,but i just laughing and mocking of them that they're always suck :guffaw:
Star Chart Idea - Just something I am working on.

Forum statistics

Threads
104,460
Messages
1,006,444
Members
135,966
Latest member
Kleik
Top