Jump to content

Noodle

Members
  • Posts

    1,163
  • Joined

  • Last visited

Everything posted by Noodle

  1. What that script is saying is that if the player has health equals to 1 (set_health = 1), then the script "end_duel" will be activated. The main problem with it, is that it'd only check that value only once when said script is activated. You'd need to activate the script constantly to check if the player has reached that amount of health. Here's what I'd do to make a script get activated when the player reaches less than 25 points of health. First, I'd create the script that tells the player to run a script if he has less than 26 points of health. affect ( "player", INSERT ) // affects the player. INSERT doesn't stop the previous script { if ( $get( FLOAT, "SET_HEALTH" ) < 26.000$ ) // if the player has less than 26 HP { affect ( "player", FLUSH ) // affects this player. FLUSH makes it so the other script stops working { wait ( 1000.000 ); // wait 1 second run ( "end_duel" ); // this runs the script end_duel.ibi located in 'scripts' folder. } } else ( ) // if the player hasn't reached less than 26 HP { wait ( 1000.000 ); // wait 1 second } } After that, I'd create another script that runs the first one every 5 seconds. This way, it'll constantly check if the player has less than 26 HP instead of just doing it once. loop ( -1.000 ) // this is an infinite loop { wait ( 5000.000 ); // wait 5 seconds run ( "test/health_test" ); // run the first script } I think this should do it.
  2. Wow, that's the best example I've seen in a long while of a Mary Sue. Makes Rey look like a well written character in comparison! As far as we've seen, the dark side makes the body of the user's decay and it might be related to why they cling to life so badly. Although there doesn't seem to be any indication in canon that the light side makes you live longer, it just seems to give you a better quality of life in contrast.
  3. Does the rest of the script works? If it does, even if the deathscript doesn't work, is the player unkillable? If the answer is positive to both questions, then the problem is related to the deathscript in question. Could you share that one with us too?
  4. Could you share a screenshot of your script in behavED and also of the folder your script is located? It would be much easier to spot a problem like that. Edit: I created a working map example for you to see how it works. Download this file https://www.dropbox.com/s/jj1x1yvlbwb32ux/deathscript_test.pk3?dl=0 and see the source files. Whenever the stormtrooper kills you, the deathscript activates.
  5. Nope. Deathscript does work, I've tested it in JA many times without issue.
  6. If this is for Jedi academy it should affect 'player', not 'kyle'. Otherwise, it should work unless it's not finding your deathscript.
  7. I'm very thankful for this. Thanks to the documentations others have provided I have been able to understand the things that allow me to do my own things for my mod projects.
  8. Everytime I can I will try to participate on those matches and will call friend to test it too.
  9. We might infer that is just a gameplay related thing and was done because it'd been too time consuming to create a new mechanic just for a one-mission weapon. We know that bullets are used in the Star Wars universe new canon because of The Clone Wars and comics like Anakin & Obi-wan
  10. If noone answers in these days I might be able to during the week.
  11. I had never even heard of this bug! Good to see that you fixed it and shared the answer, I don't know much about coding but that line sure can be useful!
  12. 1) I don't know the exact answer, not even maps like mp/siege_destroyer seem to be that big. 2) Yes you can, but the light will be limited. (see: )3 and 4) I don't know that, but Langerd did a pretty nice tutorial explaining i. Read here: https://jkhub.org/topic/9233-scarif-small-test-map-checking-the-terrain-making-little-tutorial/
  13. Though this season we've seen almost all of the imperial characters die in a very gruesome and explosive fashion
  14. 1. They only seem to kill as a last resource. After all his recent experience (learning from his visions with Yoda that fighting was what doomed the Jedi) Kanan seems to be much more of a pacifist than the rest of the cast. Ezra is his student, so it seems reasonable that he's avoiding senseless murder in this season (though he has murdered stormtroopers in the past). 2. Kanan was a padawan that didn't formally finish his training until recently and Ezra is the student of a former padawan that didn't formally finish his training until recently. They're not supposed to be OP mary sues like Revan and other EU characters.
  15. I've only seen the storymode in youtube since I can't play the game, but I really liked Shriv. His adventure with Lando made it even better.
  16. Good to know that you solved the problem!
  17. Just a quick test I did. May be useful for future stealth mechanics.
  18. During this time I've been adding and creating animations for my own mod project that I thought I would add to the animations menu mod. However, If I did this it'd replace any custom animations mod the user might have. Since I don't know if that'd be a good idea, I've had the project on hold. However, I can share some of the animations I had worked on that would be part of the animations menu project (also, some updates to my Female Trandoshan model). Thanks! When I release my demo (hopefully soon, I just have to fix some darn bugs and optimize everything) I'll be happy to collaborate with people if they would like to!
  19. I never managed to make horizon blending work, but please, if you discover new information please share it since it's very useful for every mapper here.
  20. I have never used a .cfg for that so I wouldn't recommend it since I lack the knowledge. In the info_player_start entity you must add a target command that has a value equal to the targetname of the target_scriptrunner entity. This is a working exmaple from my maps and it should help you understand how everything is set. The info_player_start entity is linked to the target_scriptrunner. The "usescript" command in target_scriptrunner has a value equal to the location of my own script. The full directory would be "Gamedata/Base/Scripts/Hideout/npccheckercantina.ibi" file. Good luck, if it doesn't work, send me a screenshot of what you're doing and maybe I can point the error.
  21. Trial and error. It can be very satisfying when you actually get the things as you wanted them to be.
  22. You can do both, it depends on what you want to do. At the start of a level, you could link the info_player_start entity with a target_scriptrunner entity that uses the specific script that changes the player skin, it should work.
  23. You have to set the script with a SET_SKIN value, like this: set ( "SET_SKIN", "models/players/jedi_kdm/model_default.skin" ); Of course, in that example it would only work with the jedi_kdm model, otherwise it will end up looking odd.
  24. Good to hear! Roff files are awesome because they can really help you set an atmosphere for a singleplayer map. Remember that artus level in Jedi Outcast which has flying x-wings, tie fighters and crashing ships? Most of that was done with .roff files.
×
×
  • Create New...