ID:178104
 
How do you improve this verb so that, if it had previous owners, the owners lose the city? But leave the new owner.
City_claim()
set src in oview(1)
usr.City += 1
usr << "[usr], you conquered a city!"
usr.Population += 100
usr.City()
Drafonis wrote:
How do you improve this verb so that, if it had previous owners, the owners lose the city? But leave the new owner.
City_claim()
set src in oview(1)
usr.City += 1
usr << "[usr], you conquered a city!"
usr.Population += 100
usr.City()

That all depends on how you keep track of who owns which city. You didn't include any of that code.

There doesn't seem to be any reference to the city being taken over, which would matter because it's the only way to tell who owns it.

Lummox JR
In response to Lummox JR
Well, City is a var in my game. The proc that keeps track of the Cities' conquering is:
mob/proc/City()
if(usr.City == 7)
world << "WINNER: [usr]!"
usr << "YOU WIN!"
usr.City = 0
world << "Cities reset!"
usr.Experience += 10
usr.wealth += 100