Some questions about Buildings..

Improving the artwork in Warzone2100 - not for mod discussions
Post Reply
Remotehorst
Trained
Trained
Posts: 54
Joined: 01 Nov 2010, 21:45

Some questions about Buildings..

Post by Remotehorst »

Would it be possible (and easy) to have new structures and give them a new tilesize?
I want to create a new building with 3x3 maybe even 4x4 size.

This building should only "work" if another special building is directly beneath it ("touching it").
I would be very glad if someone could help me into this.

If this all works my next question would be:
Can i recode the AI if i got only a little programming experience in PHP or do i need more?
I want the AI to build this special buildings directly after building the command center.

And my last question: How can i make it that the player and AI has only a little amount of time to build this structure? (10 minutes) If he did not build it, or the building will be destroyed the player looses the game.


Thanks in Advance!

Remotehorst
My Blender Tutorials for Beginners (german): http://www.youtube.com/user/voxelgeek
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Some questions about Buildings..

Post by Per »

New buildings with new sizes is not difficult, you just need to learn the stats and wrf stuff, which is painful.

AI coding is not very hard either, just be aware that the script language is very primitive and full of bugs and has little in the way of modern debugging aids. So be prepared to have exceptional patience.

Timeouts can be coded in campaign scripts, if you wish.
Remotehorst
Trained
Trained
Posts: 54
Joined: 01 Nov 2010, 21:45

Re: Some questions about Buildings..

Post by Remotehorst »

So it should be possible! Thank you for the information. :)
My Blender Tutorials for Beginners (german): http://www.youtube.com/user/voxelgeek
Post Reply