| 06-16-2003, 01:08 AM | #1 |
just wondering i cant find out how to change the lvl with huge amounts of script and i cant find this script in other tds like maulcan anyone help me would be much appreciated:D :infth: |
| 06-16-2003, 04:38 AM | #2 |
Changing a "level" in a TD map isn't really all that hard. Here is a step by step example for the traditonal TD map: Step 1 Create an array of monsters For this example I will use the varible name Monster_List_Arry of type unit-type Your name can be what ever you like I try and name my verables what they are. Step 2 Create a trigger that fills this array(Monster_List_Arry) with all the monsters your map will have so Set Monster_List_Arry[0] = Footman Set Monster_List_Arry[1] = Grunt Set Monster_List_Arry[2] = Oger ... Set Monster_List_Arry[n] = Monster On The Last level of your map. Step 3 Create a condition in which a new level will start, somthing like: All monsters owned by playerX (the computer or what have you that is running your monsters) are dead or Timer Expires in the trigger that determains when the next level starts have a statment that says Set level = level + 1 (where level is a varible name that can be anything you like, but for this example keeps track of what level players are on) Step 4 In your tigger that makes monsters for that level say: Create 1 Monster_List_Arry[level] at someregion with defualt facing. And tada new level. You can also add in triggers that fire when new level starts the increase money or player time or what ever you need. Hope that answered your question. Neo_Genesis |
