Using an IP (intellectual property) as an inspiration is done all the time and as long as you do not use “systems” (such as D&D dice systems) or actual characters (like Luke Skywalker) or other recognizable elements that would make your writing too similar to the IP, you should be okay.
Here is a stickied thread that should help you:
The final determination on any game won’t be made until it is submitted for publication, but the general rule is: as long as it does not glorify or advocate anything, the staff usually will be fine with pin-pointing what they will and won’t accept in a submission.