Sir_Titas

Villager
Member
Joined
Jul 22, 2013
Messages
28
Reaction score
1
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
3,372
Reaction score
2,488
First Language
English
Primarily Uses
RMMZ
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
28
Reaction score
1
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
2,469
Reaction score
1,863
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
28
Reaction score
1
First Language
english
Primarily Uses
N/A
Ok thanks for that
 

Latest Threads

Latest Posts

Latest Profile Posts

What a stupid week so far! I was really short on sleep yesterday thanks to my back hurting and not falling asleep fast enough, now today I am 2 hours late for work because my damn alarm clock changed from the alarm setting, to the radio setting which I always keep muted.
I introduced "booby trap" as another indirect way to fight supernatural threats in the game.
But, some of my players are using it to blow up random citizens on the street.
Not sure how "creative" they can go with it. :kaojoy:
Oh, boy. I'm now having dreams about Unity.
i want to make videogame, though i am burned out on games with RPG elements, but the only gamedev tool i know how to use is rpg maker. :/

Forum statistics

Threads
112,259
Messages
1,066,875
Members
145,875
Latest member
Namika
Top