| Blockland Forums > Help |
| Vce CTF events |
| (1/3) > >> |
| Mysteroo:
For the Operation Infiltration server we were using the slayer CTF, but we didn't want the infiltrators to have a capturable flag. We only wanted one team to have a capturable flag- the defenders. So I gave VCE a shot. Here's the events --- Code: ---OnPlayerTouch(team1) > self > dissappear [-1] OnPlayerTouch(team1) > minigame > chatmsgall > [<color:ffffff><font:impact:25>%1 has captured the Intel!] OnPlayerTouch(team1) > player > editAppearance > unhidenode > pack OnPlayerTouch(team1) > player > removeitem > parachute [v] OnPlayerTouch(team1) > client >vce_modvariable [flag] set [1] onminigamereset > self > dissappear [0] OnMinigameDeath > client > Vce_ifvariable [flag] = [1] [7 8] onvariabletrue > self > dissapear [0] onvariabletrue > client > vce_modvariable [flag] set [0] --- End code --- That's the flag, and this is the point that you have to return the flag to- --- Code: ---OnPlayerTouch(team1) > client > vce_ifvariable [flag] = 1 onvariabletrue > namedbrick-Intel > dissapear [0] onvariabletrue > minigame > Win > triggerteam [Agents] onvariabletrue > client > vce_modvariable [flag] set [0] --- End code --- Players are able to capture the flag and they get the red pack to show that they have the flag, but then when they bring it back to the point- the second set of events- nothing happens. I made sure that the team name was "Agents" and they were the first team. Using slayer |
| Pacnet2012²:
Want me to edit the game mode script so only 1 team can capture ? |
| Mysteroo:
--- Quote from: Pacnet2012² on August 08, 2012, 05:58:42 PM ---Want me to edit the game mode script so only 1 team can capture ? --- End quote --- Yeah, if you can find a way to make a defend the flag sort of gamemode that would be good. Thanks! |
| Pacnet2012²:
--- Quote from: Mysteroo on August 08, 2012, 06:03:56 PM ---Yeah, if you can find a way to make a defend the flag sort of gamemode that would be good. Thanks! --- End quote --- Okay. |
| Gen. Hothauser:
All looks good, except I'm a little confused. So I assume the pack that you unhidenode for is the flag, and removing the parachute just gets rid of the chance that someone will mess up whether the pack is still on our not. Is this correct? Also, I was told this when I was starting out with typing events. The format takes a bit longer to type, but it is more organized. --- Code: ---[0] [0] [x] [onactivate] [self] [setcolor] [red] [1] [0] [x] [onactivate][client] [VCEifvar] [something] [>=] [1] [2 4] --- End code --- The brackets make it look more contained and better focused. I provided two examples of how it should be written, this was not an addition to what you should add. |
| Navigation |
| Message Index |
| Next page |