• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

Word Values?

xNuminousx

Verified Member
So how do I make word values configurable? I want to give server developers the option to choose what particle spawns for a certain animation, but I can only recall how to set numerical values such as speed or damage. But like if I want them to put FLAME or MAGIC_CRIT in the config.

It'd be like...

Particles:
Effect1: FLAME
Effect2: CLOUD
Effect3: SNOWBALL_POOF​

That sort of thing.
 

StrangeOne101

Staff member
Plugin Developer
Moderator
Verified Member
You'd need to get the values from a list in the config. Then loop through all of these, check if they are a valid particle effect (check if ParticleEffect.valueOf(string) != null). If so, call your things from the particle like that
 

xNuminousx

Verified Member
You'd need to get the values from a list in the config. Then loop through all of these, check if they are a valid particle effect (check if ParticleEffect.valueOf(string) != null). If so, call your things from the particle like that
So i can't get it just to take one value? For example, if I set 2 as damage than the damage for the move, the location of the variable, is just set to 2.... so if I put particleEffect1 in place of the particle effect variable, that wouldn't work the same as if it was damage?
 
Top