I've been working with DimX and apache tomcat since last year, and have been trying to make a game to go along with a project I've been working on for a website I belong to. Anywho, I've got it basically set up so that I can only log in as the admin, and nobody else can be admin. I've also set it up so that two of my friends can only log in as themselves, and nobody else can be them (as far as the little avatar, anyway)
I have items in the game that the members of this project will have to collect, by fulfilling quests for various NPC's situated throughout the game.
Just a couple of things:
Is there a way to spawn multiples of the same item? Say I have 5 people playing this game, and I need each of them to collect a blue rock, a green rock, and a pink rock. Can I make it so that there are 5 of each rock in the game, so each person can complete the quests?
Also, is there a way to make certain items "unique" in a player's inventory? Like, if I have those 3 rocks I mentioned before, and I don't want anyone to be able to pick up more than one rock, but still be able to carry some other items with a weight of 1 each. is there a way I can tell the game that once someone has something with $TARGET.name = "bluerock" they can't pick up anything else with $TARGET.type = "rock" (or, in the case of being able to spawn multiples of the items, it would be that they can't pick up any more of that same blue rock)
I've been looking through the tutorial and the developer's reference, and I haven't got a clue.
sadly enough, it took me three days to come up with a code for that login condition I mentioned before.
Hi there,
for sure the system to make what you want exists, but you need to code all the logic yourself.
Multiple copies of similar objects can be done at run time via the NewItem function.
About the logic, the game engine doesn't have a specific device to implement all the checks in your case, you have to implement them via a number of IF ... END_IF constructs.
Some programming skill will be necessary - for small, specific cases you can get some help here (remember to post the code) otherwise you'll need some help from a skilled friend.
I tried coding multiples with the NewItem function, but it kept... not working.
Maybe I should mention that I'm a total newbie to this stuff, and I'm learning it the hard way.
Anyway, I couldn't get it to work how I wanted, so I kind of gave up and changed the original plan for the game.
So now I have a different question: I know you can modify the GUI panel in the sidescreen, but can I add graphics or a map or something into that same sidescreen, below the user panel?
I have a giant maze I want them to run through and pick up items they find along the way. I want them to be able to track where they've been, though, so they don't get totally lost. Can I put a map in the sidescreen, with a little dot showing where they are, on it? (I don't know if this would involve some kind of java scripting or what)
If that isn't possible, could I have some kind of... I don't know, something that they could use in-game to mark their trail so they know where they've been?
Oh in this case it's simple, the MAP feature is very simple to use.
Check out the Developer's Reference and perform a search for the string:
MAP
You'll get all the directions there.
See also the source code of the "MAP Demo"