• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Set Name System 1.01

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
A simple system set name system.

update 1: Fixed max limit.

  • SNS Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Customize your entered word/string, be sure to add a space after it (Should be lower case). --------
      • Set SNS_String = -name
      • -------- Accepts Capital Letters? --------
      • Set SNS_Capital = True
      • -------- Customize how long a player's name can be. --------
      • Set SNS_NameLimit = 20
  • Set Name
    • Events
      • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
      • Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 3 (Teal) types a chat message containing <Empty String> as A substring
      • Player - Player 4 (Purple) types a chat message containing <Empty String> as A substring
      • Player - Player 5 (Yellow) types a chat message containing <Empty String> as A substring
      • Player - Player 6 (Orange) types a chat message containing <Empty String> as A substring
      • Player - Player 7 (Green) types a chat message containing <Empty String> as A substring
      • Player - Player 8 (Pink) types a chat message containing <Empty String> as A substring
      • Player - Player 9 (Gray) types a chat message containing <Empty String> as A substring
      • Player - Player 10 (Light Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 11 (Dark Green) types a chat message containing <Empty String> as A substring
      • Player - Player 12 (Brown) types a chat message containing <Empty String> as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SNS_Capital Equal to True
        • Then - Actions
          • Set SNS_EnteredString = (Substring((String((Entered chat string)) as Lower case), 1, (Length of SNS_String)))
        • Else - Actions
          • Set SNS_EnteredString = (Substring((Entered chat string), 1, (Length of SNS_String)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring(SNS_EnteredString, 1, (Length of SNS_String))) Equal to SNS_String
        • Then - Actions
          • Player - Set name of (Triggering player) to (Substring((Entered chat string), ((Length of SNS_String) + 1), (SNS_NameLimit + (Length of SNS_String))))
        • Else - Actions


Please give credits if used. :)

Keywords:
Name, Set, Change, Vary, Variable, String, Player
Contents

Set Name System 1.01 (Map)

Reviews
Set Name System 1.01 | Reviewed by Maker | 4th Jun 2013 REJECTED [tr] The system is too simple to be approved

Moderator

M

Moderator


Set Name System 1.01 | Reviewed by Maker | 4th Jun 2013
REJECTED


126248-albums6177-picture66522.png


  • The system is too simple to be approved
[tr]
 
Level 29
Joined
Oct 24, 2012
Messages
6,543
this only allows the user to change there name to the SNS-String variable.
It would be better if u remove this.
This is also really simple so im not sure if it will be approved.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Substring(SNS_EnteredString, 1, (Length of SNS_String))) Equal to SNS_String
  • Then - Actions
  • Player - Set name of (Triggering player) to (Substring((Entered chat string), ((Length of SNS_String) + 1), (SNS_NameLimit + (Length of (Entered chat string)))))
  • Else - Actions
 
this only allows the user to change there name to the SNS-String variable.
It would be better if u remove this.
This is also really simple so im not sure if it will be approved.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Substring(SNS_EnteredString, 1, (Length of SNS_String))) Equal to SNS_String
  • Then - Actions
  • Player - Set name of (Triggering player) to (Substring((Entered chat string), ((Length of SNS_String) + 1), (SNS_NameLimit + (Length of (Entered chat string)))))
  • Else - Actions
I tried it and it works properly, try it.

and, why would this get rejected if this is a needs fix? and mine is even shorter.
 
because it has leaks etc... Normally, a system that has leaks and such always get a needs fix first...

but seriously, this kind of system is too simple to be called a system...

Also, what's the point of the first if-then-else if you're still just gonna use the entered substring as is...

Also you have a max limit variable but you just add it to the length of the string??? Resulting to a no max limit actually...
 
depends...

Also, what's the point of the first if-then-else if you're still just gonna use the entered substring as is... you change it to lower cases if capital is not allowed, but then you still change the name into Substring(entered chat string) meaning you still use the original string... rendering what you did on the first if-then-else, useless...

Also you have a max limit variable but you just add it to the length of the string??? Do you realize that it results to a no max limit actually...
 
Level 29
Joined
Oct 24, 2012
Messages
6,543
depends...

Also, what's the point of the first if-then-else if you're still just gonna use the entered substring as is... you change it to lower cases if capital is not allowed, but then you still change the name into Substring(entered chat string) meaning you still use the original string... rendering what you did on the first if-then-else, useless...

Also you have a max limit variable but you just add it to the length of the string??? Do you realize that it results to a no max limit actually...

i must be really tired lol i didnt even see that.
 
depends...

Also, what's the point of the first if-then-else if you're still just gonna use the entered substring as is... you change it to lower cases if capital is not allowed, but then you still change the name into Substring(entered chat string) meaning you still use the original string... rendering what you did on the first if-then-else, useless...

Also you have a max limit variable but you just add it to the length of the string??? Do you realize that it results to a no max limit actually...
The only meaning of the boolean is that, it would accept even if the command has capital letters. For example, the command is -name, but you entered -NaMe or - NAME or - nAme, it would still work. Well anyway I have specified that the command should always be in lower case in the initialization. :)

but for the max limit, sorry, its supposed to be Max limit + SNS_String.

Updated
 
Top