- Joined
- Feb 11, 2016
- Messages
- 249
Greetings! I need a bit of help, I need to make (for now just for gold) double-sided resources, let me introduce you what I mean.
In incoming map I'm making (I will post it on Hive Workshop), player play with chosen hero, one of heroes available is "Shadow Demon", it is one hero with two bodies, Shadow and Demon, each is independent hero, and a "force" (which is basically a player) can change from one to another in any time (with ability cd of course) and body without that force don't have anything to do with a player that controlling another body therefore can't change items. I need to make that that the each body has own money but both collect it together, for example one collect 30 gold, both bodies has 30 gold to spend. Another example... I chose Shadow and collect 40 gold and buy some items (including tomes) when I swap body and get control over Demon I want still have 40 gold, not just what is left, so I can buy items for same amount of gold with a Demon too, then Demon earn some money, again, both of bodies can spend it. This can be easily done by tracking 4 different money flows, for both of the bodies are tracking money it has until it's changed into another and money it has when another changed into it, what is counted like previous money + money other body earn, this can be done with variables. If anything is not clear, feel free to ask, I want "finish" map for posting in a few next days. Thank you.
In incoming map I'm making (I will post it on Hive Workshop), player play with chosen hero, one of heroes available is "Shadow Demon", it is one hero with two bodies, Shadow and Demon, each is independent hero, and a "force" (which is basically a player) can change from one to another in any time (with ability cd of course) and body without that force don't have anything to do with a player that controlling another body therefore can't change items. I need to make that that the each body has own money but both collect it together, for example one collect 30 gold, both bodies has 30 gold to spend. Another example... I chose Shadow and collect 40 gold and buy some items (including tomes) when I swap body and get control over Demon I want still have 40 gold, not just what is left, so I can buy items for same amount of gold with a Demon too, then Demon earn some money, again, both of bodies can spend it. This can be easily done by tracking 4 different money flows, for both of the bodies are tracking money it has until it's changed into another and money it has when another changed into it, what is counted like previous money + money other body earn, this can be done with variables. If anything is not clear, feel free to ask, I want "finish" map for posting in a few next days. Thank you.