Eihwaz Posted February 8, 2018 Share Posted February 8, 2018 Hello Community, I am planning a new and funny mod for 7d2d, and thanks to Alphado my concept is already very nice - I dont want to spoil it but I need 1 final "function" to make my mod working: "I need a quest that starts for everyone on the server, and if one player finish it ALL get a new one" Alphado mention it is maybe possible with "hooks". I dont know about it - but if its works it would make my idea 1000% better. (I have a "emergency plan" if its not possible) Have you any ideas - if and how this could work? Link to comment Share on other sites More sharing options...
Guppycur Posted February 8, 2018 Share Posted February 8, 2018 You'd need an API mod or use SDX. The "hooks" are code injections to make that happen while everyone is on. Link to comment Share on other sites More sharing options...
Eihwaz Posted February 8, 2018 Author Share Posted February 8, 2018 Can you recommend one (for my needings)? Link to comment Share on other sites More sharing options...
Prisma501 Posted February 8, 2018 Share Posted February 8, 2018 Can you recommend one (for my needings)? I think guppy meant "you need to create an API mod or SDX mod" to accomplish that. Cheers Link to comment Share on other sites More sharing options...
Eihwaz Posted February 8, 2018 Author Share Posted February 8, 2018 i dont know if i can do this. my idea works in singleplayer but not multiplayer (because all ppl need the same quest stage). ... maybe i make a alpha first for singleplayer only with dummy models/icons and hope that someone helps me if he like my idea ^^ Link to comment Share on other sites More sharing options...
Eihwaz Posted February 9, 2018 Author Share Posted February 9, 2018 If 7d2d were made with Java I know how to start, but here i have no clue. I need something like this, or? Is this possible with ScriptingMod? config queststage: 0 start / 1-7 mainquest / 8 mainquest / 9 final queque: if queststage was 0 at shutdown, time save defaultRestart: serverticks until quest restart latestFounds: who complete queststage 1: to 7: --------- server start check if queststage = 0 if 0 queque +1 until = defaultRestart latestFounds 1-7 set none execute command: remove quests player (to be sure no one bug) execute command: give quest1 all player join execute command: remove quests player check queststage if queststage = 1 execute command: give quest1 player (and so on) event handling if player finish quest[1-7] save playerName @ latestFounds 1-7 queststage +1 execute command: remove quests all execute command: give quest[queststage] all else if player finish quest8 queststage +1 execute command: remove quests all execute command: give quest[queststage] all else if player finish quest9 execute command: remove quests start respawn loop ticks until defaultRestart execute command: give quest1 all server shutdown if queststage = 0 save time @ queque Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.