Poison 10 Posted March 17, 2014 Something like this: http://docs.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html 1 Dastgir reacted to this Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted March 17, 2014 Something like this: http://docs.oracle.com/javase/7/docs/technotes/guides/language/strings-switch.html +1 for this, a good feature to be implemented. Quote Share this post Link to post Share on other sites
Gerz 7 Posted March 17, 2014 +1, good feature. Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted March 17, 2014 that has been suggested when there were only rA, but it got rejected, can't remember why, lets wait for devs Quote Share this post Link to post Share on other sites
pan 87 Posted March 18, 2014 I can't see why not to implement this in our script engine, but I'm not so sure of what are the real implications of such modification performance/resource-wise... Quote Share this post Link to post Share on other sites
Tepoo 23 Posted March 18, 2014 dont see the point or neccessarity of this. i more prefer a switchcase with enums if i realy need words on the spots. but strings.... this doesnt feel correct. Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted March 19, 2014 (edited) dont see the point or neccessarity of this. i more prefer a switchcase with enums if i realy need words on the spots. but strings.... this doesnt feel correct. Source supports enums, what about Scripts? scripts only support numbered switch cases(and constants) setting up constants for scripts is not good(As far as I am concerned).[Constants also don't support strings(For Scripting)] Edited March 19, 2014 by Dastgir Pojee Quote Share this post Link to post Share on other sites
Tepoo 23 Posted March 19, 2014 It can maybe wrong, but if a feature is so hugh, that it needs those advanced technologies, should it be a script? i think if something is so hugh (and i would count the new bg system to this) it should not be a script, it should be a map-server logic. Greetings Tepoo Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted March 19, 2014 It can maybe wrong, but if a feature is so hugh, that it needs those advanced technologies, should it be a script? i think if something is so hugh (and i would count the new bg system to this) it should not be a script, it should be a map-server logic. Greetings Tepoo Maybe you misunderstood my words, Its definately a source modification but it is used with script like for example OnPCTalk:switch (strcharinfo(0)){case "ItsME"://Do somethingbreak;case "ItsNotME"://Do somethingbreak;default://Do somethingbreak;} (Just a example....) Quote Share this post Link to post Share on other sites
mleo1 36 Posted February 3, 2015 >was scripting, it does not work >i googled, this shows >bump, lol Quote Share this post Link to post Share on other sites