19,659
edits
(rewrote/completed the tutorial) |
m (added link for finding weapon names) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
|} | |} | ||
"A_t48" is the name of the very first enemy that you encounter in Oni: a | "A_t48" is the name of the very first enemy that you encounter in Oni: a [[Thug]] patrolling the first room in the Syndicate Warehouse. This exercise is going to find a new purpose for him. Load the first save point in Chapter 1. | ||
First, we are going to stay in this room and study him. We do '''not''' want to fight him. So you should make yourself invisible with the '''moonshadow''' cheat. Now he can't see us. If we don't want him to hear us, either, we can creep. | First, we are going to stay in this room and study him. We do '''not''' want to fight him. So you should make yourself invisible with the '''moonshadow''' cheat. Now he can't see us. If we don't want him to hear us, either, we can creep. | ||
Line 34: | Line 34: | ||
---- | ---- | ||
{|style="float:right" | {|style="float:right" | ||
|+<tt>''' | |+<tt>'''char_0'''</tt> | ||
|[[Image:Konoko 1.gif]] | |[[Image:Konoko 1.gif]] | ||
|} | |} | ||
Line 43: | Line 43: | ||
You will see name tags appear both above "A_t48" and Konoko ("char_0"). These are their scripting names. | You will see name tags appear both above "A_t48" and Konoko ("char_0"). These are their scripting names. | ||
---- | ---- | ||
Now, we are going to give him a weapon, the Van de Graaff pistol (stun gun). | Now, we are going to give him a weapon, the Van de Graaff pistol (stun gun). You can obtain the scripting names of weapons from [[BSL:Inventory management#Weapons|HERE]]. | ||
CMD: chr_giveweapon A_t48 w6_vdg | CMD: chr_giveweapon A_t48 w6_vdg | ||
Line 86: | Line 86: | ||
This is just a sampling of the power that BSL gives you. There are over 500 built-in variables and functions in Oni. You can find a full list of them at [[BSL:Functions]] and [[BSL:Variables]]. | This is just a sampling of the power that BSL gives you. There are over 500 built-in variables and functions in Oni. You can find a full list of them at [[BSL:Functions]] and [[BSL:Variables]]. | ||
P.S.: Note that there are some things you can't do on the console that are essential to scripting, such as declaring a function. The | P.S.: Note that there are some things you can't do on the console that are essential to scripting, such as declaring a function. The [[../Scratch|next tutorial]] will show how to write complete scripts in .bsl files. | ||
[[Category:Modding tutorials]] | [[Category:Modding tutorials]] |