- Joined
- Oct 6, 2006
- Messages
- 293
Alright im making a mercenary hiring system for my beta map. I dont quite understand variables but here is basically what im trying to do.
(The merc hirer is spawned by hero in range)
1. I have a mercenary shop with just 1 mercenary.
2. When i buy my first mercenary im going to put up a scoreboard that says like mercenary points or i can have it up at init, thats fine to. That would be less complicated.
3. When i train the unit i want it to increase the merc points to on the scoreboard by 1.
4. When the merc points get to 10 i want it to turn on a trigger that spawns a different merc hirer, he will have an extra unit for all the funding.
So i come near a spot, it spawns a shop guy, i buy a unit, it increases a variable by 1 that when at like 10,20,30 i will turn off a trigger and turn on a diff one that has more units. The scoreboard is just to show the points but i dont really need it. Maybe just have it typed like -merc points and it will show the points like that.
I would like it to add more then 1 point for more expensive units but i can tinker with that if anyone can help me get the basic foundation explained to me.
(The merc hirer is spawned by hero in range)
1. I have a mercenary shop with just 1 mercenary.
2. When i buy my first mercenary im going to put up a scoreboard that says like mercenary points or i can have it up at init, thats fine to. That would be less complicated.
3. When i train the unit i want it to increase the merc points to on the scoreboard by 1.
4. When the merc points get to 10 i want it to turn on a trigger that spawns a different merc hirer, he will have an extra unit for all the funding.
So i come near a spot, it spawns a shop guy, i buy a unit, it increases a variable by 1 that when at like 10,20,30 i will turn off a trigger and turn on a diff one that has more units. The scoreboard is just to show the points but i dont really need it. Maybe just have it typed like -merc points and it will show the points like that.
I would like it to add more then 1 point for more expensive units but i can tinker with that if anyone can help me get the basic foundation explained to me.