PDA

View Full Version : Money?


hotty111
06-20-2008, 3:50 PM
umm i sorta have a question about an rpg map im making and sorta when a guy levels i need him to keep money even after his upgrade like in dbz maps so how would i sorta do that...

Durandal
06-20-2008, 4:00 PM
Well, I think you could sorta do that if you sorta used the "Set resources" action and then set it up so that it's like this: "Modify resources for current player: 'Set to' '50' 'ore'", and then put a preserve trigger, that it might work... sorta.

I'm just using 50 as an example. Use whatever amount pleases you. However, I don't totally know what your problem is because I've never actually played DBZ maps, so I can only hope that this actually helps you.

Dem0nS1ayer
06-20-2008, 4:37 PM
If you're using the leaderboard to count experience like the dbz maps, then all you have to say is, "Player kill (lets just use this one for now) score is at least (however much you want it), set resources for player: add (however many minerals you want) ore." Then just keep doing this for whenever the player gets to a new score.

Durandal
06-20-2008, 5:57 PM
That'll cause him to continue gaining money indefinitely.

hotty111
06-20-2008, 8:12 PM
exactly ...

ForTheSwarm
06-20-2008, 8:18 PM
Condition:
(something that says the unit is level 1)

Action:
Set resources to x ore.
Preserve trigger.

Condition:
(something that says the unit is level 2)

Action:
Set resources to x+1 ore.
Preserve trigger.

Repeat as many times as you need.

hotty111
06-20-2008, 8:55 PM
what happeneds if someone upgrades wouldnt it mean they lose that money?

BlademasterSlsh
06-20-2008, 10:49 PM
the preserve trigger always resets it to that amount, never higher, never lower (well, almost never). So they can spend the money and the game will give them a full refund.

Durandal
06-20-2008, 11:44 PM
i need him to keep money even after his upgrade

Well, I was under the impression that you just needed him to have the same amount of money that he had before. I didn't think you just wanted to keep giving him more and more and more money.

Dem0nS1ayer
06-21-2008, 11:32 AM
Well actually I was saying that every time the player got a new score, you could give him money, but I guess that's not what you're trying to solve. :concern: