XML Generator for XML stuff

By looking at the goodie hut example, I am not sure if there is a lot of randomness in the reward that the hut gives you.

Still, there are a lot of things, which requires XML editing, which are simple permutation of information. Of course, you could personalize each quest, each goodie hut, etc. But what if you need a large amount of information fast.

One solution would be to have a small program that randomly generate XML stuff. Or even generate all the possible combination. For example you could have for goodie hut:

A- The tile: You make a list of tiles that you want to use as goodie hut

B- Reward: You dress up a list of the rewards that are going to be given by the hut.

C- Defenses: You make a list of the possible defense party that could protect the hut.

The program would take 1 element from each of the list and generate all goodie hut, or a random selection, in XML that you could use or modify for your mod.

What do you think?

974 views 3 replies
Reply #1 Top

I like randomness.   I'd be interested in contributing to a project that did this.   Of course, I'm not sure how you could do this dynamically as you play the game.   More likely you would have to randomize the world/map xml after it is generated.   Otherwise you could generate new goodie huts randomly before world creation that could then be chosen by the generator.

 

Either way, should add more variety to the game.   

Reply #2 Top

I was not thinking to add it dynamically in the game. It would be more a tool for modders who could generate randomly object they do not wish to spend time developing.

Reply #3 Top

Sounds great.   Should definitely be doable.