- Joined
- Oct 4, 2006
- Messages
- 132
Ok, its a bit difficult to describe
Sorry for that.
I started a minigame-map today.
The idea is that every player has got a worker, who needs to go into the forest and search for gold, silver and iron ore.
He has to attack them to get items/charges on its ore-item.
The number of charges he acquires depends on the type of ore:
5 for gold, 3 for Silver and 1 for Iron. They are all stored in one item which can have a max of 100charges, then it goes to the next ore-item.
but my problem is, that i don't really know how to trigger when he gets those charges.
I don't like the idea of the source dropping an item on death, for i fear stealing it by other players. no fun that way.
I had the idea of this: if the source drops from over 90% hp to equal or less than 90%, the attacking unit gets the charges. the 3 types got different values of hitpoints, for of course gold is more difficult to mine than iron.
if the sources hp drop now from over 80% under 80% he gets the second charge, and so on.
This way it doesn't really matter if you destroy the mine, for it has 10 loads to give. that way, if somebody is stealing, he won't steal 50 charges (in the case of a goldmine) but only 5, which is a big advantage.
But how could I trigger that percentage-thing? i don't have a clue yet, and i'm not confident that i will get one in time, so I ask you to help me out!
Maybe someone does the trigger(s) for me, or just give me some hints?
I would be very grateful for any sort of help!
it's the last big problem that has to be solved before i can finish the game!
PS: the mines aren't static; they are spawned at the beginning of the game several times, (10 gold, 20 silver and 30 iron)
everytime 1 mine is destroyed, another one of the same type is created somewhere else. maybe this knowledge is helpful for this task =/
Sorry for that.
I started a minigame-map today.
The idea is that every player has got a worker, who needs to go into the forest and search for gold, silver and iron ore.
He has to attack them to get items/charges on its ore-item.
The number of charges he acquires depends on the type of ore:
5 for gold, 3 for Silver and 1 for Iron. They are all stored in one item which can have a max of 100charges, then it goes to the next ore-item.
but my problem is, that i don't really know how to trigger when he gets those charges.
I don't like the idea of the source dropping an item on death, for i fear stealing it by other players. no fun that way.
I had the idea of this: if the source drops from over 90% hp to equal or less than 90%, the attacking unit gets the charges. the 3 types got different values of hitpoints, for of course gold is more difficult to mine than iron.
if the sources hp drop now from over 80% under 80% he gets the second charge, and so on.
This way it doesn't really matter if you destroy the mine, for it has 10 loads to give. that way, if somebody is stealing, he won't steal 50 charges (in the case of a goldmine) but only 5, which is a big advantage.
But how could I trigger that percentage-thing? i don't have a clue yet, and i'm not confident that i will get one in time, so I ask you to help me out!
Maybe someone does the trigger(s) for me, or just give me some hints?
I would be very grateful for any sort of help!
it's the last big problem that has to be solved before i can finish the game!
PS: the mines aren't static; they are spawned at the beginning of the game several times, (10 gold, 20 silver and 30 iron)
everytime 1 mine is destroyed, another one of the same type is created somewhere else. maybe this knowledge is helpful for this task =/