Game Development Community

Adding new properties to terrain

by CoolGeek · in Torque Game Engine · 02/05/2006 (2:07 pm) · 2 replies

I'm worrking on a new RPG (well, thinking about working...) Anyway, I want to have the ability for NPCs and the character to own land. I thought that one way to do this would be to attatch a new variable to every unit of terrain-a number indicating what character owns it. I'm not a very experienced C++ programmer(I'm learning), and I wanted to get some insight from the GG community on this before I start trying to code it. I'd appreciate all your input.

#1
02/16/2006 (10:26 am)
It might be easier to create an object that designates a piece of land, place them manually in the mission and store them all in a simSet. Then you can designate all your plots of land.

You could also set them up as a trigger, which would allow you to make things happen when anyone stepped on someone's piece of land.
#2
02/16/2006 (5:07 pm)
That's a good idea. I'm not so sure about the trigger suggestion, because I want to be able to have characters buy and trade land, so the former idea is more attractive. Thanks for the idea!