the setname dont work for no reason when i put the new engine on older engine it work on 2.1.4 it dont work Fix it is only setname i know my game is
gonna die with out setname
the setname dont work for no reason when i put the new engine on older engine it work on 2.1.4 it dont work Fix it is only setname i know my game is
This is not related to fixing your code, but please use OR instead of creating another action, so it will be like this:
if codething == !setname or if codething == /setname or if codething == ?setname then do
rest of the code
instead of:
if codething == !setname then do rest of the code
if codething == /setname then do rest of the code
if codething == ?setname then do rest of the code
sorry i dint unsdanstand
if (( (get last chat message of triggering player)) starts with /setname
set last triggering player name as (substring of (get last chat message sent by triggering player) from index 11 to (length of (get last chat message sent by last triggering player)
if you want a cap for your name length, do:
if length of (get last chat message sent by triggering player) > ((YOUR NUMBER CAP HERE) + 11): do
for all units owned by last triggering player:
create floating text “hey pal that’s too long” at position of selected unit
else:
(the script aforementioned)