Serpens Posted September 3, 2016 Share Posted September 3, 2016 Is there a way in DST to transfer characters with all items to a new generated world? The only command to generate a new world I know is c_regenerateworld(), but this will of course delete the previous character. And in addition to this, is it possible to use the voting system? Like when someone activates Teleportato, everyone on server can vote if they want a new generated world or not.http://steamcommunity.com/sharedfiles/filedetails/?id=756229217 Link to comment https://forums.kleientertainment.com/forums/topic/69953-teleportato-character-transfer-to-new-generated-world/ Share on other sites More sharing options...
GuyNamedChris Posted September 8, 2016 Share Posted September 8, 2016 *bump* Can someone give this man an answer? His mod is pretty cool. @DarkXero? Anyone? Link to comment https://forums.kleientertainment.com/forums/topic/69953-teleportato-character-transfer-to-new-generated-world/#findComment-811364 Share on other sites More sharing options...
DarkXero Posted September 8, 2016 Share Posted September 8, 2016 advanceworldcommand.zip Link to comment https://forums.kleientertainment.com/forums/topic/69953-teleportato-character-transfer-to-new-generated-world/#findComment-811399 Share on other sites More sharing options...
Serpens Posted September 8, 2016 Author Share Posted September 8, 2016 (edited) 13 hours ago, DarkXero said: advanceworldcommand.zip Thank your very much! You are Great!! How do I run a user command? If teleportato is activaed I do: RunUserCommand("worldjump", params, caller, onserver) ? But what should I enter for params, caller and onserver? (caller maybe the player who avticated it) edit: I know I can type in the "say" line ingame "/worldjump" and it works But how to do it via script? And of course only the host should be able to do the worldjump via the "say" line ingame. But all should be able to do it via the teleportato edit2: And how to set how many players must vote "yes" ? And if too many players voted "no", is there any function called? I think if enough voted "yes" the function "serverfn" is called? So maybe I just add a DoTaskInTime(50,NoJump) so if the world still exists 50 seconds, I know there will be no jump and I deactivate teleportato again. edit3: And will this work if some players are in cave?! Edited September 8, 2016 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/69953-teleportato-character-transfer-to-new-generated-world/#findComment-811476 Share on other sites More sharing options...
DarkXero Posted September 8, 2016 Share Posted September 8, 2016 I did the heavy lifting of coding the jump and keeping age and inventory. Your voting questions, you can figure them out. I don't see the need for the voting, really. I would make it so everybody has to touch the teleportato within 10 seconds, or make it so everybody has to touch the teleportato and not more than 5 seconds have to pass between every touch. 3 hours ago, Serpens said: And will this work if some players are in cave?! No, because I didn't want to make the master and the slave talk so that the slave told the master the inventories of the people that were there. Extra work for a gimmick. Just call everybody near the potato. TheWorld.components.worldjump:DoJump() requires everybody on the same shard as the potato. You can remove the condition on the DoJump method, but the stuff of people in shards without the potato won't save. Link to comment https://forums.kleientertainment.com/forums/topic/69953-teleportato-character-transfer-to-new-generated-world/#findComment-811503 Share on other sites More sharing options...
Serpens Posted September 8, 2016 Author Share Posted September 8, 2016 Thank you. I solved it now without voting, like you suggested. More than half of all players have to be near teleportato to activate it. And then I just call the DoJump thing directly (of course with some nice animation). I also added options to enable/disable invenotroy, age, beard and prototype transfers Link to comment https://forums.kleientertainment.com/forums/topic/69953-teleportato-character-transfer-to-new-generated-world/#findComment-811622 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now