Posted by: tomeister - Saturday, August 20, 2011 3:32:16 AM
So heres what I want to do. I want a train which has loads of health but is NOT indestructable. And when it dies I want another one with loads of health spawn and so on. I know how to make a working train. Thanks.

Posted by: NewNightmare - Saturday, August 20, 2011 4:12:24 AM
Spawn Train [code] *** If *** True. *** then *** Spawn 'Train' on waypoint blabla[/code] Respawn Train [code] *** if *** 'Train' destroyed *** then *** Enable Spawn Train[/code] In Respawn train uncheck 'deactivate upon success' and on the other side of the window select seconds, and make it like every 2 or 3 so it won't be processor consuming at all, while 1 or 2 seconds of delay won't make a difference for a train that spawns beyond map border... unless it will trigger a series of scripts that are crucial to map progress

Posted by: tomeister - Saturday, August 20, 2011 4:28:34 AM
Thanks! is there any way to edit the health of the train? And do i have to place the train off map before hand?

Posted by: NewNightmare - Saturday, August 20, 2011 4:30:24 AM
to change health, in the object properties in WB go to health dropdown and select the bottom thing, then type in the health next to it, and yeah its better for the train to spawn outside the map so that it doesnt appear from thin air when you will be passing though the spawn point accidentally

Posted by: tomeister - Saturday, August 20, 2011 4:49:42 AM
Thanks, i'll post again if any problems. Another thing- when I make a new map, when i play it it is really small and i can only really see the middle of it with no player starting places or anything! Any idea why?

Posted by: NewNightmare - Saturday, August 20, 2011 5:01:45 AM
u mean there is the black shroud around you ? Here's what I have set up for my test-map: [code]*** IF *** True. *** THEN *** The world is revealed for Player 'Player'. - Got to MAP>SHROUD OR REVEAL>ENTIRE MAP FOR PLAYER Player 'Player' is given a Rank Level of 5 . - Go to PLAYER>EXPERIENCE>SET RANK LEVEL Set Player 'Player''s money to $ 99999 - Go to PLAYER>SET>SET PLAYER'S MONEY [/code] You can also go [code]Radar > Control > Force enable - to make navigation easier..[/code] as for starting point, create a waypoint, and chose the 'initialcameraposition' from dropdown list and place it wherever you want to start the map you have no player starting places because you have no skirmish players i guess... these are under edit > edit player list > add skirmish players - dont add them if you're making a mission BTW, you have to create a player 'player' to make sure you can assign the 1st 3 'THENS' in this post to an actual human player Check out tutorials on this website, they tell all the basics :)

Posted by: tomeister - Saturday, August 20, 2011 5:31:27 AM
How do you add working tunnels for trains ?

Posted by: NewNightmare - Saturday, August 20, 2011 6:45:02 AM
never done that 1... you'd have to ask the uncle G

Posted by: Drummin - Saturday, August 20, 2011 9:25:45 AM
[quote=Tomeister]How do you add working tunnels for trains ?[/quote] You rename the waypoint by adding the word "Tunnel" so the path ignores elevation changes. For example: Waypoint 199Tunnel

Posted by: tomeister - Tuesday, August 23, 2011 1:24:57 PM
How to you set a map to be completely shrouded unless revealed? Do you know where I can find a guide to more scripting coolness?

Posted by: NewNightmare - Tuesday, August 23, 2011 1:57:02 PM
[quote]map to be completely shrouded unless revealed[/quote] sounds funny, you mean perma shroud for a skirmish map ? if so, never done that 1... try map shroud or reveal and do perma shroud for all skirmish players (player0 to 7 if my memory is good) [quote]more scripting coolness?[/quote] Practice is my only answer, I tried doing some maps b4, but usually stopped after a week where the finishing details came into play... like throwing random stones or props, looking for texture errors, ambient sounds, making some life in towns etc... I'll attach an example of such work, notice that the movie scene was substituted with a subtitled version of the famous hitler scene, which I lost upon game re-install sadly, it looked epic though :) P.S it was my 1st map.ini fail as well coz i tried adding stuff to map.str and was surprised it never worked ... then I started some shockwave mapping which is a lot more fun with more units, etc... and now decided to do some modding...even more fun imo ;P [ATTACH]878[/Attach]

Posted by: tomeister - Tuesday, August 23, 2011 2:09:55 PM
Thanks-looks cool! What are map.ini's?

Posted by: NewNightmare - Tuesday, August 23, 2011 2:25:02 PM
a 'mobile' modding file, that travels with the map, and affects just the map it is attached to. look for some threads in modding part of generals on this forum, and you'll get what it is :) allows for altering unit's properties (but is buggy as hell and a some stuff just doesn't work - just like WB, beta version I guess)

Posted by: tomeister - Wednesday, August 24, 2011 3:09:40 AM
Does the spawning train already have to be on the map(as in already made) Where can I find out how to make ini's?

Posted by: NewNightmare - Wednesday, August 24, 2011 11:30:14 AM
as for whether the train has to be spawned, you can make 1, and add spawning script with a subroutine to make it re-spawn if destroyed and follow the tracks is possible, and for help in map.inis ask what you need.. but I can't do them sadly..

Posted by: tomeister - Sunday, August 28, 2011 1:32:10 PM
Hey thanks. You've been a great help this topic. Could you check out some of my questions on the modding generals topic for me? No one is answering. And also- do you know how to script it so the train will only spawn when a structure is destroyed?