Page 1 of 1
Help with keys
Posted: June 18th, 2010, 5:19 pm
by tuppinator
I made a map recently i thought it has turned out rather well the only issue I have is i have no idea how to make keys.
What im trying to accomplish is have the player collect all the keys by doing puzzles by jumping and such and once they have all the keys they are able to access the finish. I would love to know how to make keys and how to make a finish to the end of the level. Any help would be great. Thanks (anything about fps weapon creation would be nice too)
Re: Help with keys
Posted: June 18th, 2010, 6:07 pm
by GR1M
This question has already been answered in many forms and fashion. Here’s one out of many resources
viewtopic.php?f=15&t=1338&p=10797&hilit=key#p10797 In the future can you search the Tutorials and recourses for your next question.
Re: Help with keys
Posted: June 18th, 2010, 7:12 pm
by tuppinator
I did nothing came up it was probably my computer acting up again though but thakyou
Re: Help with keys
Posted: June 18th, 2010, 7:25 pm
by GR1M
Code: Select all
key1 = 0
level_trigger_1 = [
if (> $key1 0) [
trigger 1 1
echo "You unlock the door with the key."
] [
trigger 1 0
echo "The door is locked."
]
]
level_trigger_2 = [
key1 = (+ $key1 1)
echo "You picked up a key."
]
Re: Help with keys
Posted: June 18th, 2010, 7:41 pm
by tuppinator
My issue is how do i assign an object as a key and how do i put coding like this into the game. God i feel like such a noob
Re: Help with keys
Posted: June 18th, 2010, 9:54 pm
by DrChef
add the code to the map's .cfg file in the my_stuff/packages/base folder
when you have the key, press "/" and make sure the model's 3rd attribute is set to 12 and the fourth to the trigger #
for the above code, you'd have the key set to:
i.e. entset mapmodel 277 353 12 2 0 0 0 0
and the door to:
entset mapmodel 277 110 11 1 0 0 0 0
Hope this helps

Re: Help with keys
Posted: June 19th, 2010, 11:08 am
by InHumanUnit
I understand nothing here. Math is another lanuage I swear.
Re: Help with keys
Posted: June 19th, 2010, 4:42 pm
by tuppinator
Actually i figured it out by myself X3 when i had no internets earlier today.
Re: Help with keys
Posted: June 19th, 2010, 6:31 pm
by arcones
InHumanUnit wrote:I understand nothing here. Math is another lanuage I swear.
tuppinator wrote:Actually i figured it out by myself X3 when i had no internets earlier today.

Once you get the hang of it, it's not to hard. It's only once you get to the big integer arithmetic stuff that confuses me
If, thens...

Re: Help with keys
Posted: June 28th, 2010, 7:48 am
by InHumanUnit
In the world of manga, high benefits. In the world of game-making, high benefits. But for all them so much practice, like Impacto, or something.