Basic Code Editing
Posted: 2008.12.06 (08:14)
Basic Code Editing
Well this is a guide to simple NReality coding. Inspired by ChaoStar’s attempt. So all I'm going to do is teach you how to make simple drones and some drone editing. And a warning to all experienced members, this probably won't be of any help to you.
Now, a few drones. First you need to learn about the Chaingun Drone and the basic coding functions in a map/level. When you make a map in N's beloved NEDITOR all the data is stored, so when you return to the menu of Ned you will be able to see this data. After you have made a map press HOME and then ` or \. On the screen will be two text boxes and the top box contains the Game Data. This is the data we will be playing with.
Game Data:
Game data always has data of the placing of the tiles/walls and then the objects/enemys. In the enemy section at the end there will be a variety of numbers that you may not understand and that is what I shall now teach you.
The Chaingun:
You want to make a NReality level and you want, say a Force Field Drone, instead of adding a FFD (Force Field Drone) add a Chaingun and make sure it is the last thing you place in the map. The Chaingun’s code should look something like this:
The number you should be interested in at this point is the second last no.(the first 2). I you were to change this number to 16 when you press L to load the map the Chaingun will turn into a FFD. This is the list of numbers and what drones they will make:
16 : FFD
100 : Ghost Drone Type 1
101 : Ghost Drone Type 2
102 : Ghost Drone Type 3
121 : Rocky Drone
122 : Tile Drone
132 : Alarm Drone
141 : Greedy Drone
Still Drones:
Using the same code, if you want to make a Chaingun which doesn't move anywhere you can change the third number, which in this case is a 3 to a 9. When on loading this map the drone will become still. This will also work if you change the Chaingun into any other drone as well.
Good luck, and therefore a code for...say... a Greedy Drone would be:
Here we are playing with the 0, the third last number. Changing this number to a 1 will turn the laser drone into a Rotating Laser Drone when you load the map. Thanks for reading, I hope you have learnt something from this guide and see you later!
- Rikaninja {RAN}
Well this is a guide to simple NReality coding. Inspired by ChaoStar’s attempt. So all I'm going to do is teach you how to make simple drones and some drone editing. And a warning to all experienced members, this probably won't be of any help to you.
Now, a few drones. First you need to learn about the Chaingun Drone and the basic coding functions in a map/level. When you make a map in N's beloved NEDITOR all the data is stored, so when you return to the menu of Ned you will be able to see this data. After you have made a map press HOME and then ` or \. On the screen will be two text boxes and the top box contains the Game Data. This is the data we will be playing with.
Game Data:
Game data always has data of the placing of the tiles/walls and then the objects/enemys. In the enemy section at the end there will be a variety of numbers that you may not understand and that is what I shall now teach you.
The Chaingun:
You want to make a NReality level and you want, say a Force Field Drone, instead of adding a FFD (Force Field Drone) add a Chaingun and make sure it is the last thing you place in the map. The Chaingun’s code should look something like this:
Code: Select all
6^348,372,3,0,2,2
16 : FFD
100 : Ghost Drone Type 1
101 : Ghost Drone Type 2
102 : Ghost Drone Type 3
121 : Rocky Drone
122 : Tile Drone
132 : Alarm Drone
141 : Greedy Drone
Still Drones:
Using the same code, if you want to make a Chaingun which doesn't move anywhere you can change the third number, which in this case is a 3 to a 9. When on loading this map the drone will become still. This will also work if you change the Chaingun into any other drone as well.
Good luck, and therefore a code for...say... a Greedy Drone would be:
Code: Select all
6^348,372,3,0,141/code]
That is the first step in NReality Code editing. Now to learn about Rotating Laser Drones
Rotating Laser Drone:
Make a map and instead of using a Chaingun you have to use a laser drone, and a laser drone code should look something like this:
[code]6^540,444,3,0,1,2
- Rikaninja {RAN}