Основы моддинга

автор - Jimmyjay86


Создание лестниц

Движение врага по вэйпоинтам

Что такое индекс игрока

Создание NPC, присоединяющегося к вашей команде

Создание клипов (Clips)

Зона выхода

Переключатель зоны выхода

Случайное нападение в карте

Говорящие объекты (Entities)

Подробнейшее руководство по использованию Фотошопа для создания Raw-файла



Создание лестниц:

1. Идем в меню "View", ставим галочку "Show Tile Bounding Box".

2. Тайлы для лестниц находятся в Generic Tiles/Ladders. Показанные сегменты очень малы, поэтому в поле "Tile List Scale" меняем значение с 0.5 на 5 и жмем ввод. Выбираем нужный вам сегмент.

3. Допустим, ваш отметка высоты для земли = 0, а отметка дял крыши = 13; начнем работу с 13. Выровниваем первый сегмент по краю крыши и кликаем левой кнопкой чтобы установить его. Теперь будьте осторожный и постарайтесь не сдвинуть мышку с ее нынешней позиции.

4. Жмем Page-Down, чтобы перейти на один уровень вниз и острожно кликаем левой кнопкой чтобый установить следующий сегмент. Продолжаем так до тех пор, пока не достигенем отметки 1. Если у вас мышь или клавиатура с колесом скроллинга, вся процедура окажется намного легче.

5. Идем в меню "Select" и, удерживая Шифт, левой кнопкой выделяем сегмент лестницы и клавишей Page-Up передвигайтесь к следующему. Делайте так, пока вся лестница не будет и ее границы не станут выделены синим цветом.

6. Идем в меню "Tools" и устанвливаем опцию "Climbable".

7. Все - должно работать замечательно. Если нет - практикуйтесь.

Движение врага по вэйпоинтам:

1. Жмем F&, потом кнопку "Player ..",В окне диалога Player Setup, выбираем игрока ,которого хотим двигать. Справа, кликаем на кнопку "AI Setup". Устанавливем "Controller Type" Waypoints. Ставим 5 в поле "Move Type Priority", а в поле "Move Target Tag" пишем Enemy-way. Оставляем все пока как есть, но имейте ввиду что в этом окне есть еще опции, которые просто не видны. Чтобы увидетьих, тяните мышкой сожержимое окна верх или просто скрольте колесиком.

2. Поставьте объект(entity) для вашего врага и убедитесь что у него индекс 2 или больше (в зависимости от выбранного игрока).

3. Теперь помещаем на карту вэйпоинты - устанавливаем индеск игрока в 0 и в поле "Tag", пишем Enemy-way. Объекты для вэйпоинтов находятся в папке "misc". Разместите их столько, сколько вам нужно.

4. Кликаем на Entity Edit или жмем F4, и кликаем на вэйпоинт, который вы хотите сделать первым. В меню слева скрольте до тех пор, пока не появится поле "Waypoint Index" и напишите в нем 1, в поле "Next Waypoint List" пишем 2, это будет следующий вэйпоинт. Делайте так для всех вэйпоинтов, и лишь для последнего в поле "Next Waypoint List" укажите 1.

5. Если я не ошибаюсь, все должно работать.

Что такое индекс игрока:

Для игры в однопользовательскую миссию нам необходим персонаж, которым будет управлять человек, а также враги и (NPC's) , упарвляемые компьютером, для взаимодействия с этим персонажем. Вот как все это делается:

1. The first step is to click on the "Level" button at the top of the level editor. On the left side screen there should now be an option button for "Player" - click it. This opens the "Player Setup" dialogue box. The default settings are "0. Scenery" and "1. Humans". You want to "Add" another Player Index - "2. Enemy". Under "Name", type "Enemy" and for type you want to use Computer. The team you can pick "2" and then click ok.

2. Now click on the "Team" button on the left side which will bring you to the "Team Setup". Highlight Team 1 and type in the name of your team - "BOS" or whatever and the same for Team 2 - "Enemy". Where all the green squares are, left-click the appropriate boxes to make them enemies or right-click them to make them friends. So in the first row, left click on the box in column 2 until you get a value of -10 and the same for Row 2, Column 1.

3. Now you want to insert the entities for your enemies. At the top of the screen click on the "Entity" box. A new menu will appear on the left side with a directory of the entities. In the Player field enter the number 2 and hit enter. Don't enter anything in the Tag field for now. Click on the directory for Actors and choose the character you want to use or find an entity that you have already created with the entity editor. Then just place him/her wherever you'd like. If you immediately click the entity editor box you can edit this entity. You may want to customize the looks of a generic figure or rotate him to face a particular direction or add things to his inventory.

4. If you want to add a PC that you control, do the same thing except put him/her/it under Player Index 1.

Making an NPC Join Your Team:

1. In the speech editor, click the "Add" button. The name of the speech goes under the "Remove" button. In the Random 1 field choose the node to assign to this speech. And under that enter an event name like "NPCspoke1".

2. For the trigger condition use "Speech Occured". Here you choose the speech event from above - "NPCspoke1".

3. For the trigger action use "Change Player". Pick the tag name you used for the entity from the list for the Unit. Then you want to change him to Player 1.

Making Clips:

You have to select a whole building first - all of it's levels, stairs, walls, roof, etc. Hold down the shift key when selecting additional things. When you have the whole thing, hit ctrl-c to copy it to the clipboard. Then click the 'save clip' button to save it with whatever name you want. Then when you want to load it, click 'load clip' and move the cursor someplace and hit ctrl-v to paste it. Paste it at the highest level that the building is in. So if the roof is at level 13, then paste it in there. It takes a little practice - don't expect to get it right the first or second time. And if you screw up, hit ctrl-z to undo.

Exit Grid:

To make an exit grid is easy - just select the tiles you want and go to the tools pull-down menu and click 'exit'. Now it won't show up green right away, so scroll your screen over and then back - voila, green exit-grid. To make the grid pop up at the appropriate time use a trigger. Set the action to 'Toggle Exit Grid' and the condition to whatever.

Exit Grid Switch:

1. Create your exit grid by selecting the tiles and clicking the Tools pull down menu and clicking 'Exit'.

2. Click on entity and find the switch you want to use. Give it a 'Tag Name', 'exit' for example.

3. Create a new trigger with a new condition.

Object Script State of 'exit'

4. Create a new action.

Turn Exit Grids 'On'

Random Attack in a Map:

Just set up a small zone on the map and have a NPC wander around with way points. Whenever your PC and the NPC are in the zone at the same time, he will start attacking you. Everywhere else, he will just ignore you. Use a trigger to set it up:

Conditions:

Player 1 has more than 0 alive at zone 'attack'

Player 3 has more than 0 alive at zone 'attack'

Actions:

Change units Player 3 to Player 4

Keep player 3 set as a neutral team and player 4 as an enemy team.

Speaking Entities:

Here is a tutorial on something I just figured out. Remember in the earlier Fallouts you could click on things and get funny sayings? Well here is how to do that. This works mostly on entities but can be used with most any tile object too.

1. Go in the entity editor and open the entity that is supposed to talk. In the Display Name field, place a name like 'Sign1' and save the entity.

2. Add the entity to your map as scenery.

3. Create new line in items.txt with entry:

name_Sign1 = {52nd & Broadway}

4. If you want plain tile objects to 'speak', create a new entity called 'Phone' for instance. Use a sprite of something small like a bullet or create a new sprite of a small box.

5. Place the entity behind the phone booth tile object so it is not visible.

6. Create a new line in items.txt:

name_Phone = {Please deposit 35 cents please...}

Comprehensive guide to using photoshop to create a raw file:

1. Open your jpeg or gif file.

2. Hand color the background into one single darker color. Make sure it does not share a color with your image.

3. Use the magic wand tool to pick the background. Switch to the lasso tool and hold down "Shift" to add elements to the background or "Alt" to subtract areas from the background. The magic wand occasionally will select more of what it should so zoom in close and get as exact as possible.



4. Hold down "Shift+Ctrl+I" to make an inverse selection. This will select the object. Now hit Ctrl-C to copy the selection.



5. Go to "Image-Mode-Indexed Color" and use the default values of Adaptive palette, 8 bits/pixel color depth, 256 colors, and no dither.

6. There will be a toolbar for layers and channels on your desktop. Switch to the tab for channels. There should be one channel labeled "Index". On the bottom of that tool window there are 4 icons. Pick the icon that says "Create New Channel" when you hover the cursor over it. This will create an alpha channel. Click the empty gray box to the left of the Index channel. Make sure the alpha channel is still highlighted and hit the delete key. The object should show up now. Hit Ctrl-D to deselect.

7. While you are still in indexed color mode, go to Image-Mode-Color Table and save the color table. Hit the "OK" button. [Note: this is the palette you're using. You don't have to do it for each image you create.That was a mistake I did before realising you can actually import it in all 3 sizes of the sprite.]

8. Go to Image-Image Size and size your image to the size of the guibig as outlined below.

9. Save as a raw image with interleaved order and hit ok again.

10. Scale down the image twice more and save one for the guismall and the default images. [for the default images you can play with mirroring the image to get the directions you want]

11. Import them in Spray.

Typical image sizes:

Book

guismall-48x27

guibig-96x53

default-19x11

Gun

guismall-42x27

guibig-84x52

default-18x9

Armour

guismall-51x27

guibig-101x54

default-35x32

Ammo

guismall-59x27

guibig-116x53

default-11x6

Follow these guidelines closely, especially for heights. Otherwise there will be funny things happening in your gui screen.

Hosted by uCoz