I'm still pretty new to the editor and I was wondering how I would do this. I want all the players to have the main gun, machine gun. Then random weapons will appear around the map. Each weapon will have a limit to how much ammo they have. If the same weapon popups you get a refill of ammo. What would I need to edit? Is it Data or trigger?
Triggers prolly. You would need the add and remove weapon actions, and for the ammo system I used the 'effect used' event to check if the weapon was fired. I've also heard of people going to the weapon in the editor and editing the cost, but I am not sure about the specifics.
Well you could do it through data editor, just create a dummy ability for the unit, that doesn't do anything, just stores number of charges (=ammo).
Then, each weapon would have cost: - 1 charge for that ability, and when you pick the weapon up, it first deletes all charges (they can't go negative I think, so change them by -1000(modify units has charge change in cost field) ), if you change weapons, and then adds ammo
And ofc, the attack will cost 1 charge, I think that if you put an effect with cost of 1 charge in the weapon effects, it will prevent the unit from attacking if it doesn't have the charges
I'm still pretty new to the editor and I was wondering how I would do this. I want all the players to have the main gun, machine gun. Then random weapons will appear around the map. Each weapon will have a limit to how much ammo they have. If the same weapon popups you get a refill of ammo. What would I need to edit? Is it Data or trigger?
@Keyeszx: Go
Triggers prolly. You would need the add and remove weapon actions, and for the ammo system I used the 'effect used' event to check if the weapon was fired. I've also heard of people going to the weapon in the editor and editing the cost, but I am not sure about the specifics.
Well you could do it through data editor, just create a dummy ability for the unit, that doesn't do anything, just stores number of charges (=ammo). Then, each weapon would have cost: - 1 charge for that ability, and when you pick the weapon up, it first deletes all charges (they can't go negative I think, so change them by -1000(modify units has charge change in cost field) ), if you change weapons, and then adds ammo
And ofc, the attack will cost 1 charge, I think that if you put an effect with cost of 1 charge in the weapon effects, it will prevent the unit from attacking if it doesn't have the charges