Status
Not open for further replies.

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
Hey folks,

I'm trying to build a dictionary in my plugin that I can loop through and grab different values from.

I've build it the standard way I usually build it in Java, but for some reason I keep getting a Invalid Left-hand on assignment error.

Here is the code.

Code:
Hashtable<Integer, Integer> my_dict = new Hashtable<Integer, Integer>;
my_dict.put(1,2)

I'm not sure what I'm doing wrong here.

Any and all help appreciated.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,052
Reaction score
7,140
First Language
Indonesian
Primarily Uses
RMVXA
Are you learning Javascript or are you learning Java?
Because both are different.
 

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
Honestly, did not know there was a difference. (self taught)

I take it I'm using the wrong format and will have to built it object based.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,052
Reaction score
7,140
First Language
Indonesian
Primarily Uses
RMVXA
If you're aiming to make an MV plugin, then you're learning the wrong language.
If you're aiming to learn Java, then you're asking in the wrong place.
 

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
Okay I will have to shift my learning over to JavaScript instead. Damn.. Lol

Thank you.

Mods this thread can be closed.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
649
Reaction score
278
First Language
english
Primarily Uses
RMMV
@NoShirtstann to close a thread you click report on your 1st post in the thread and say its solved
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,192
Reaction score
14,234
First Language
English
Primarily Uses
RMMV
Mods this thread can be closed.
Please use the Report button on your post to ask for a thread to be closed. Mods aren't able to read every post in every thread and will miss it otherwise.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Observation Log 1 on the planet of "RPGMAKERWEB": Local RMXP community seems to have very few survivors. Their script tech-level is in the early Stone Age(about the same as 66RPG in 2007).
Some cats/wolves/squirrels are spotted, they are likely friendly. :3
Keep working on establishing more meaningful contacts.
May try to use the "I Come in Peace" protocol if encounter any hostiles.
Using hiddenone's QTE tutorial I've been able to setup a simple fishing system. Instead of just the pointer moving, the goal moves as well. Holding the action button scrolls the pointer and pressing the down arrow key hooks the fish. The speed of both is variable as well as the number of successful hooks needed for a catch.
When someone helps you solve a problem, it's good to report the thread so it can be closed, but it's also nice to go back and post in the thread to let them know their suggestion actually worked. And, you know, to say thanks for helping.

Forum statistics

Threads
108,925
Messages
1,040,639
Members
141,378
Latest member
Supasyd93
Top