ladiszlai Posted April 3, 2016 Share Posted April 3, 2016 Hello, There are any tutorials here how can I make a custom mission ? Because I didn't find yet. I need to to make a mission like this: when I kill an Npc the mission complete and play a .roq movie for me. I need to make an .IBI script ?I am a newbie at missions. Thank you Link to comment
Ramikad Posted April 3, 2016 Share Posted April 3, 2016 Hello, There are any tutorials here how can I make a custom mission ? Because I didn't find yet. I need to to make a mission like this: when I kill an Npc the mission complete and play a .roq movie for me. I need to make an .IBI script ?I am a newbie at missions. Thank you In this specific case (and in most others as far as SP missions are concerned) you'll need .IBI scripts, yes. You'll want to set up a deathscript key on your NPC, and the path to the .IBI script file after scripts/ as value.Feel free to take a look at the Tutorial Section, as well as Redsaurus' excellent SP mapping / mission making Tutorial. ladiszlai likes this Link to comment
ladiszlai Posted April 4, 2016 Author Share Posted April 4, 2016 In this specific case (and in most others as far as SP missions are concerned) you'll need .IBI scripts, yes. You'll want to set up a deathscript key on your NPC, and the path to the .IBI script file after scripts/ as value.Feel free to take a look at the Tutorial Section, as well as Redsaurus' excellent SP mapping / mission making Tutorial.Thank you, I will try this Link to comment
ladiszlai Posted April 4, 2016 Author Share Posted April 4, 2016 Alright, I made my map with Gtkradiant, now my question is how can I use the deathscript key on my npc ? What I need to put to the "Value" ? my .ibi script name ? Link to comment
Ramikad Posted April 4, 2016 Share Posted April 4, 2016 Yes, the name of the script and the path after scripts/.For example, if you have it in scripts/mymap/endlevel.IBI:Key: deathscriptValue: mymap/endlevelObviously, your scripts will need to play the cutscene, and subsequently use a target_level_change set to your next map, or alternatively the script could play the cutscene and fade to credits. Play around with script commands, to get the hang of it. Asgarath83 and ladiszlai like this Link to comment
ladiszlai Posted April 4, 2016 Author Share Posted April 4, 2016 Yes, the name of the script and the path after scripts/.For example, if you have it in scripts/mymap/endlevel.IBI:Key: deathscriptValue: mymap/endlevelObviously, your scripts will need to play the cutscene, and subsequently use a target_level_change set to your next map, or alternatively the script could play the cutscene and fade to credits. Play around with script commands, to get the hang of it.Thanks again, it works. My new question is how can I do that the movie plays after the map loads ? Asgarath83 likes this Link to comment
Asgarath83 Posted April 4, 2016 Share Posted April 4, 2016 With a SET_VIDEO into the IBI script executed by info_player_start.1: place info_player_start into new map.2: make a trigger box that touch the infoplayer start,3 set as trigger_once spawnflags: playeronly4: the trigger have as Key Usescript and value mymap/introin intro.IBI file on icarus you put as start up setting the SET_VIDEO (or something like that) command of icarus and you set the path of the roq video you want to be executed. you can also set the path of a custom roq video... but you need to learn how to make a roq video by yourself. ladiszlai likes this Link to comment
ladiszlai Posted April 5, 2016 Author Share Posted April 5, 2016 With a SET_VIDEO into the IBI script executed by info_player_start.1: place info_player_start into new map.2: make a trigger box that touch the infoplayer start,3 set as trigger_once spawnflags: playeronly4: the trigger have as Key Usescript and value mymap/introin intro.IBI file on icarus you put as start up setting the SET_VIDEO (or something like that) command of icarus and you set the path of the roq video you want to be executed. you can also set the path of a custom roq video... but you need to learn how to make a roq video by yourself.Thank you ! Asgarath83 likes this Link to comment
Asgarath83 Posted April 5, 2016 Share Posted April 5, 2016 Thank you ! My pleasure. you can also set weapons and force power levels for your player starting scroll up icarus setting option and see what you desire. ladiszlai likes this Link to comment
ladiszlai Posted April 7, 2016 Author Share Posted April 7, 2016 Can you help me please again ? How can I do that when I kill an npc then do someting with the player ? (example: if I kill the npc then change the player's model) Link to comment
Ramikad Posted April 7, 2016 Share Posted April 7, 2016 You'll need to set up a deathscript for the NPC to Affect the Player: //(BHVD) affect ( "Player", /*@AFFECT_TYPE*/ FLUSH ) { set ( /*@SET_TYPES*/ "SET_PLAYERMODEL", "DEFAULT" ); } This in case you want to completely change the player model, or //(BHVD) affect ( "Player", /*@AFFECT_TYPE*/ FLUSH ) { set ( /*@SET_TYPES*/ "SET_SKIN", "DEFAULT" ); } In case you simply want to change the skin (texture) of the current model. Or a mix of both, if you want to change to another model and a specific skin of that model. ladiszlai likes this Link to comment
ladiszlai Posted April 7, 2016 Author Share Posted April 7, 2016 You'll need to set up a deathscript for the NPC to Affect the Player: //(BHVD) affect ( "Player", /*@AFFECT_TYPE*/ FLUSH ) { set ( /*@SET_TYPES*/ "SET_PLAYERMODEL", "DEFAULT" ); } This in case you want to completely change the player model, or //(BHVD) affect ( "Player", /*@AFFECT_TYPE*/ FLUSH ) { set ( /*@SET_TYPES*/ "SET_SKIN", "DEFAULT" ); } In case you simply want to change the skin (texture) of the current model. Or a mix of both, if you want to change to another model and a specific skin of that model.Thanks, That is what I needed. Link to comment
ladiszlai Posted April 7, 2016 Author Share Posted April 7, 2016 My test map almost complete, I only need to know what is the teleport command in icarus to another bsp map ? So I want to teleport to an another map after I kill an npc, I think I need to add a deathscript but I don't know the command for the teleport in icarus, or is there an another way to teleport after I kill the npc ? Edit: I solved with this: I added the NPC_target to my npc and I spawned a target_level_change to my map and I targeted this to the npc, so when I kill the npc the player's level will change. Link to comment
ladiszlai Posted April 12, 2016 Author Share Posted April 12, 2016 Now I've got question about game launch: How can I do that the game automatically load my map after I launch it ? (without I need to type in the cmd: "map mymap")I think I need to do something in the main.menu or I don't know. Can help me somebody ? Thank you Link to comment
Teancum Posted April 12, 2016 Share Posted April 12, 2016 It's a multi-step process:Inside the root folder of you .pk3 file add a file called gamestart.cfg. Inside it you only need one line: map mymap (or whatever your map is called) Create a folder under Jedi Academy/GameData for your new map. So something like: /Jedi Academy/GameData/my_cool_map Create a txt file in the same folder as jasp.exe. Inside the txt file write: jasp +set sv_cheats 1 +set fs_game my_cool_map Save the file, then rename it as runmymap.bat Double click on runmymap.bat, then start a new game when the main menu appears. Link to comment
ladiszlai Posted April 13, 2016 Author Share Posted April 13, 2016 It's a multi-step process:Inside the root folder of you .pk3 file add a file called gamestart.cfg. Inside it you only need one line: map mymap (or whatever your map is called) Create a folder under Jedi Academy/GameData for your new map. So something like: /Jedi Academy/GameData/my_cool_map Create a txt file in the same folder as jasp.exe. Inside the txt file write: jasp +set sv_cheats 1 +set fs_game my_cool_map Save the file, then rename it as runmymap.bat Double click on runmymap.bat, then start a new game when the main menu appears. Thank you, but the map doesn't load when I open the bat. Link to comment
ladiszlai Posted April 14, 2016 Author Share Posted April 14, 2016 I fixed now, It was very simple: I just needed to add this to my "runmymap.bat" : +map mymap Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now