Weapons Question
Weezil_Of_Mods
25 Aug 2011, 15:16I use the "defib" example, but to make a weapon in the game. I reversed the script so the property is "alive" not dead. And instead of a defibrilator, I used "Magnum." But when I go to use it, it says either I can't see him, or I can't use it. What might I be doing wrong?
Alex
25 Aug 2011, 15:44No way of knowing without seeing your game, can you please attach your .asl file to your reply? "Upload attachment" tab is under the submit/preview/save draft buttons.
Weezil_Of_Mods
25 Aug 2011, 16:04This is what I did and it didn't work.
Alex
25 Aug 2011, 17:10It's not very clear either what your exact problem is, or indeed what you're trying to do here. You've added a script for "look at zombie" which doesn't print any description, you've added a script for "use magnum on zombie" which doesn't print anything, so it's hard to see what's going on and what's supposed to happen. I type commands and I get... nothing. What are you expecting to happen?
Weezil_Of_Mods
25 Aug 2011, 17:27I am making it so that two things happen:
1. When you enter the location with the zombie, a timer counts down to where he gets you, ending the game.
2. When you use the magnum on the zombie, the zombie dies i.e. the timer stops.
1. When you enter the location with the zombie, a timer counts down to where he gets you, ending the game.
2. When you use the magnum on the zombie, the zombie dies i.e. the timer stops.
Alex
25 Aug 2011, 17:52Ok, well all your game does at the moment is keep turning the timer on.
At the moment in your "use magnum on zombie" script, you check if the zombie is alive. If he is, you're turning the timer on.
There's nothing in your game that unsets the "Alive" property so this is all that ever happens. You probably want to turn the timer off and unset the "Alive" property in your "use magnum on zombie" script.
At the moment in your "use magnum on zombie" script, you check if the zombie is alive. If he is, you're turning the timer on.
There's nothing in your game that unsets the "Alive" property so this is all that ever happens. You probably want to turn the timer off and unset the "Alive" property in your "use magnum on zombie" script.
Weezil_Of_Mods
25 Aug 2011, 18:04So, instead of using a conditional, I just use a normal script that turns off the timer?
Alex
25 Aug 2011, 18:06You can use a conditional but it has to make sense. Currently you're saying "if the zombie is alive, turn the timer on" which sounds like the opposite of what you intended. You probably want to say "if the zombie is alive, turn the timer off and make the zombie not alive".
Weezil_Of_Mods
25 Aug 2011, 18:11Ok, I changed the conditional to: If "Zombie" has the property "Alive" then Turn off timer "ZombieAttacking" and Modify "Zombie" Property look=disgusting corpse. That what I do? Or do I add: Else Turn on timer "ZombieAttacking" Cause same thing happening
Alex
25 Aug 2011, 18:18Sounds like that should work, if not then attach your updated game file, and also copy and paste the output from the Quest window so we can see exactly what commands you're using when playing.
Weezil_Of_Mods
25 Aug 2011, 18:22Okay, this is what I updated. I added "Objects that can be used on Zombie" and added magnum, with silimar script as "Use magnum on zombie". I also added Modify "Zombie" Property Not alive. I just used the "use magnum on zombie" command ingame.
Alex
25 Aug 2011, 22:00That appears to work..? "take magnum" then "use magnum on zombie"... don't die any more.