I think you mean that callback functionality I put in. Basically, calling a second script after a first. So it would call change_unit_type after you load the unit into the transport.
That one might take a fair bit of explaining. On 01/10/2013 03:20, Allan Thompson wrote:
The map sounds like it is going to rock! I like the sound of it. Craig does have a script that does something which changes a unit when it is carrying a second unit, . I forgot the name of it. Essentially, it is taking two units and joining them into a single third unit. So if you got a car, and a driver, the third unit would be car with driver. I am sure I am not explaining it right. Anyway, it sounds great! al -----Original Message----- From: ian-reeds-games-bounce@xxxxxxxxxxxxx [mailto:ian-reeds-games-bounce@xxxxxxxxxxxxx] On Behalf Of Austen Perry Sent: Monday, September 30, 2013 7:40 PM To: ian-reeds-games@xxxxxxxxxxxxx Subject: [ian-reeds-games] Re: script idea, can it be done? hi, great great! does this actualy work to change the unit in to team 2 and in to the stealth spy, i mean, did you test it? just reading the message now but i'm excited. yeah i'd prefer the unit get changed in to the other team at this point, because when changing the unit type but not the team, the other team still flocks to that character even though they cant attack it, so when it gets reverted it's surrounded and cant move if the opposing force is'nt enabled. if this works to change in to the other team, unit and can switch back then this will realy rock the stuff i'm working on. just some other things i'm working on, a skill to blind a unit, effectively taking it's sight range away, a bomb that does the same thing, like a smoke bomb. a fog effect that dampens the sight range, but aircraft could have a range modifier like radar to extend through fog. my vehicles are following this knew guideline, something i recommend you look in to, so when a vehicle is produced, like a black hawk helecopter, it has so many missiles, so much fuel, actions and movement, and 0 of 1 pilot. then, it has the carry capacity of x amount of units, so in this case lets say 5 since there could be a pilot, and 4 men to drop off somewhere. when any unit loads on to the helecopter, it restores 1 pilot, so then the craft has 1 of 1 pilot, any other units climbing aboard don't do anything because there is already max pilots, then when unloading it costs 1 pilot, you unload and reload the pilot unit of your choice restoring the pilot. in order to perform most action, the craft requires 1 pilot, and the action also restores the pilot. effectively making a unit that is dependent on having a unit inside it to work properly, wich makes vehicles have a more realistic feel, they cant move or attack without someone inside them to operate them. then what you do, is make ocean and unwalkable mountain terrain tiles cause health damage to ground units only, so if the helecopter ejects a unit on one of these spaces, at the ende of it's turn the unit will die from falling on the hazardous terrain, wich introduces an item called a para shoot, that gives the unit 1 turn of flying to safely find a place to land. just a way of making realistic vehicles and ejections, the aircraft could eject then use a crash skill if it was out of fuel, or what have you. keep up the great script work cant wait for flag like scripting! raa austen On 9/30/13, Craig Brett <craigbrett17@xxxxxxx> wrote:If you hang tight, I'm working on converting my scripts over to use the new format, which work the same as normal flags, but just go under the script_flags section. Might take a while as I've run into some difficulty, but I'll get there. So then you just need to be able to change flags. But for getting you started, you could have this in your effect, these should work right away: after_applied=change_unit_type@ { NewType: "stealth_spy", Team: 2 } after_removed=revert_unit_type@ { } after_fizzled=revert_unit_type@ { } Don't worry about how it looks for now, the new way will look nicer. Something like this in the effect, maybe: change_unit_type stealth_spy change_unit_team 2 change_unit_fizzle_revert change_unit_remove_revert Or perhaps using a function for the last 2 instead once I can figure out how they work, for greater flexibility would be a nice alternative. These are just ideas. I figured the effect would last long enough to cover the enemy's turn, then fizzle at the end of that turn so you had your move with them. Will that work with the way we're calculating time though? With rounds as opposed to turns I mean. Craig On 29/09/2013 22:53, Austen Perry wrote:hi again, yeah great stuff their, i realy hope it's possible. my only problem is i have a verry small grasp on how the scripts actualy work, as far as writing them out other than what is already in people map packs, so combining or even changing the scriptb text around is a little over my head so far, i will continue to roll it over in my head though, if anyone else figures something out let me know. now just immagine playing a game, where you start as the good guys, you play ten rounds, then somehow a effect is triggered or what not, and you are now the evil team! roflmao just a random idea but so verry interesting. austen On 9/29/13, Craig Brett <craigbrett17@xxxxxxx> wrote:Hi Austin and Al. I thought I'd share my understanding and ideas on this. Is it possible? I believe so, yes. I've not thought of the specifics yet but... it should be. It may even be possible without any new scripting work. Transforming a unit can work as an effect. Look at the revert_unit function in my scripting guide to see an example of a unit transforming and turning back after the effect 'fizzles'. It's not a separate script. One script fits both. So, the way you could do it right now is to pass the Team argument into the change_unit_type script as well and set that to the enemy team (or neutral if you prefer). Then, the unit will change into the cloaked unit while the effect lasts, and be on that team as well. Use the revert_unit script after the effect fizzles and your hidden unit comes out of cover to do their nasty stuff when the time is right. Or at least, that's the theory. I haven't tried it, but now I've thought about it, this might be a neat way of doing the Allied Spy inC&C.Let me know if this works in practice. Craig On 29/09/2013 21:45, Allan Thompson wrote:Hi Austen, I like the ghost idea! Walking thru walls and the like makes me think of something called "ethereal" which is essentially the same thing. It is an rpg term. I think you are onto something there with the toggle. Let's say Craig adds an argument that allows the toggle team to change a unit to any team, not just the team of the skill user. Then, that team could be designated as the "ethereal" team which could be designated as a team that is not hostile to the evil computer controlled team(s). They would not attack the unit simply because it was not an enemy, and give the illusion of cloaked or invisible etc. At least, in theory. The problem is that toggle teamdoesn't have an argument to decide which team, but just changes the unit to the casters team. Or can a player control more then one team of units? I haven't really thought about it that much. It should be interesting to see if there is a work around? Great ideas, man! It's fun talking about these kind of things, pushing the game to do things beyond what was anticipated. al Message----- From: ian-reeds-games-bounce@xxxxxxxxxxxxx [mailto:ian-reeds-games-bounce@xxxxxxxxxxxxx] On Behalf Of Austen Perry Sent: Sunday, September 29, 2013 2:50 PM To: ian-reeds-games@xxxxxxxxxxxxx Subject: [ian-reeds-games] script idea, can it be done? hi all, i was playing around with the scripts currently available, made by carlos and abigale i believe. i came up with this idea, but when playing around with it decided just to ask if it was possible, as most of the steps are already in place as far as the script goes, and i think many will like this idea. my idea was to take the toggle team script, the change unit type script, combine them and make an effective cloaked unit for the game, as follows. a skill called cloak, that would change the team of the unit to the enemy, and the unit type to a unit called cloaked operative, where operative is the unit originaly. the knew unit would have no skills what soever, and when the enemy moved because it was on it's side would be avoided, and not attacked or even surrounded by units waiting to attack. then, when the players turn was up again, the skill slash effect would end, the unit would revert back to it's original team, and unit type, effectively cloaking the unit for one round. the problem i had was that i was unsure on how to combine the two scripts, and because only the team toggle script is in an effect so far, i wanted to see if you guys could figure this one out. this would be especialy useful for starship and starwars maps, as well as secret agent and etc... i'm also working on a skill that turns the unit in to a ghost, with terrain limits to all terrain types so that it can walk through walls and all impassable terrain even when unflyable, then when the next turn is up, you can change back in to the original unit. loving the scripts, please respond to this as i'm verry interested in the cloaking idea. austen