Experience Incentive

Maps and the art of mapmaking.
GohozoqPohobo
Leprechaun
Leprechaun
Posts: 26
Joined: 30 Sep 2007

Experience Incentive

Unread postby GohozoqPohobo » 19 Nov 2007, 23:44

I was scanning the pdf and can't seem to find what I'm looking for.
I want there to be incentive to capture towns and, moreover, I want it to be experience. So the first time you capture a specific enemy town, the hero that did it, gains 5xp (for the sake of argument).
There is something like this in the ToTE campaign, so I'm fairly certain it's possible, but I can't be sure.
Further, perhaps, what about saying that the first town grants 5 xp, the next 25, the next 625, etcetera...

Any ideas?

User avatar
Pitsu
Round Table Hero
Round Table Hero
Posts: 1848
Joined: 22 Nov 2005

Unread postby Pitsu » 20 Nov 2007, 07:53

Wasn't it so that barbarian heroes (in TotE) gain experience anywhere, where others learn spells? Since they cannot benefit from spells, experience is what they get from mage guidls and shrines.
But what you describe, you have to script...
Avatar image credit: N Lüdimois

GohozoqPohobo
Leprechaun
Leprechaun
Posts: 26
Joined: 30 Sep 2007

Unread postby GohozoqPohobo » 20 Nov 2007, 16:32

I assumed I would need a script, but I can't find the required functions.

User avatar
Grumpy Old Wizard
Round Table Knight
Round Table Knight
Posts: 2205
Joined: 06 Jan 2006
Location: Tower Grump

Re: Experience Incentive

Unread postby Grumpy Old Wizard » 05 Dec 2007, 14:59

GohozoqPohobo wrote:I was scanning the pdf and can't seem to find what I'm looking for.
I want there to be incentive to capture towns and, moreover, I want it to be experience. So the first time you capture a specific enemy town, the hero that did it, gains 5xp (for the sake of argument).
There is something like this in the ToTE campaign, so I'm fairly certain it's possible, but I can't be sure.
Further, perhaps, what about saying that the first town grants 5 xp, the next 25, the next 625, etcetera...

Any ideas?
You could set it up as objectives. You will to set up an objective in the map properties tree for each for each towns. Make the objectives initially active but invisible.

Add a function to the state change trigger for each objective. You will want to use the same function for each town. Please look at my Shadow Dreams map for examples of how to do this as I have a number of objectives in the map that make use of functions triggered by the objective changing state..

Each time a town is captured for the first time the objective for capturing that town will be completed. In the function attatched to the state change trigger cause a variable to be incremented for the experience multiplier (since you want the experience to go up each time.) And of course that rest of that function will have to give the experience to the heroe capturing the town.

If you are not familiar with setting up objectives don't try to get too fancy at first. First get the objective working for capturing a town and then after that is working script the function for handling the experience.

That is how I do scripting. Script the basic thing and get it working and then script in more details as required. Much easier to troubleshoot that way.

GOW
Frodo: "I wish the ring had never come to me. I wish none of this had happened."
Gandalf: "So do all who live to see such times but that is not for them to decide. All we have to decide is what to do with the time that is given to us."

User avatar
Muszka
Round Table Hero
Round Table Hero
Posts: 2568
Joined: 06 Jan 2006
Location: Nowhereland

Unread postby Muszka » 06 Dec 2007, 02:17

I think this is an excelent idea, it would be good to make a mod from it, not just for a map.
"Rage against the system, the system, what kills the human spirit."


Return to “Mapmaking Guild”

Who is online

Users browsing this forum: No registered users and 1 guest