Page 1 of 1

Game Modes

Posted: Sun Jul 30, 2006 7:15 pm
by Guest
Hey its Arty (again) and this time I'm wandering how you Make new game modes. Because I've got several ideas, and I want to actually make them! :D

-Arty-

8)

Posted: Sun Jul 30, 2006 7:19 pm
by -_-
script objectives of the mode in a .lua, and run it with a custom map.

Posted: Sun Jul 30, 2006 9:00 pm
by Teancum
Yup. Game modes are scripted via lua. Not many guys know the ins and outs of LUA aside from the scripts for a level, but you might talk to [RDH]Zerted and XWingGuy. They're the only ones who know LUA really well.

Posted: Tue Aug 01, 2006 2:53 pm
by [RDH]Zerted
There are a lot of little, easy steps to get a new game mode working. The first thing you want to do is create the game mode inside another mode (lets say conquest). This way, you can focus on creating the game mode and not all the little steps trying to get it to work/showup.

To get started:
1) Create a new map with a conquest game mode.
2) Edit the map's Lua (ex: XXXg_con.lua)
2b) Remove all the ScriptCB_DoFile()s except ScriptCB_DoFile("setup_teams")
2c) Delete everything inside the function ScriptPostLoad()
Now get going on your game mode.


You can take a look at: http://www.gametoast.com/index.php?name ... 76&start=0

Posted: Wed Aug 02, 2006 1:43 pm
by Hebes24
Wow! I just tried your new shell (hehe, mod maps are purple now :D ), and I have to say, you rock!!:D I've always wanted to play campaign whenever I wanted. I like those new Icons as well.

Posted: Wed Aug 02, 2006 9:18 pm
by [RDH]Zerted
Teancum did all the new icons. The mod maps being purple is faster for the computer to process, then if I had coded them to be the same as the normal game. I think the colors are going to change though...

Posted: Wed Aug 02, 2006 10:39 pm
by Teancum
Btw Zerted, I have all the code set up so that mod maps are orange. It's not yellow, it's better :P

Posted: Wed Aug 02, 2006 10:59 pm
by xwingguy
Zerted, objective mode was ideally supposed to be a campaign-ish mode design for multiplayer. Mygeeto campaign was written somewhat with this in mind.