| 02-05-2003, 08:57 PM | #1 |
im going to make a map and you can get guns and all but thers 1 prob: you can only get a certain amount of shots. but your gold/ wood is to represent your ammo so you can alwas get more ammo. i want some way to set the gold to your ammo and have more than 1 gun. ~~~~~~~~~~~~~~~~~~EXAMPLE~~~~~~~~~~~~~~~~~~ you walk around and find a pistol(10 shots). you meet a monster and kill it but your down to 1 shot. you find a rifle(10 shots) and swith to it. you fire all shots but find pistol ammo(30 shots). so as you can see i need help. thers also use keyboard to move but i can do that(you know wene you got that building and press a key to go forwerd or somthing) also useing rally points to lock on:mtk: (mabey you can find somthing better). im also going to change the bullets and stuff to missles and stuff. and get some kool music. so far i got this as ammo system. you get a unit in some spot at top but whut you do if you get like 500 missles! should i only allow you to get a certin ammount? plz decide. i hope you guys can think of a better system:D |
| 02-05-2003, 09:34 PM | #2 |
I'm only going to answer your question about ammo because this trigger took me a long time to type out and i'm lazy. This is kinda complicated to set up, but if your smart enuff to use these forums your smart enuff to understand this. In my map (Resident Evil Dark), when you ran out of gold you were replaced by a hero footman (so you could buy more clips), but you could change this to whatever you wanted. *This only works if the player has only 1 unit, or if you pick the unit for the player* Trigger 1 (You have to make this for each user controled player in the game) Events - A unit owned by (Computer Player) is attacked Conditions - Owner of Attacking Unit Equal to (User Player (Remember to change this for each player in the game) Actions - Player Add -(However you want 1 shot to cost) to player (User Player (Remember to change this for each player in the game) current gold Trigger 2: (You have to make this for each user controled player in the game) Before makeing trigg 2, make the following variables Player (Integer Array) Before makeing trigg 2, make the following regions, away from contact by other units Make regions called holding1,2,3,etc for each user controlled player in your map. Events - Player (User player_Change for each player) gold becomes less than or eqaul to 0 Conditions - Player[1 (change number for each user player)] less than 2 Actions - Unit Move random unit from units in playable map area owned by player (whatever) instantly to Holding1,2,3,etc (per player) Unit change ownership of random unit from units in playable map area owned by player (whatever) to neutral passive and change color unit Create 1 (Your out of ammo version of the same unit) for triggering player at center of (A region you have centered on this player) facing default building degrees Set Player[1(change per player) = 2 Trigger 3 - Yay the last one i have to type out! :foot: Events - Player (User player_Change for each player) gold becomes greater than or equal to 1 Conditions - Player[1 (change number for each user player)] greater than or equal to 2 Actions - Remove random unit in playable map area owned by player 1(change per playa) Unit move random unit in Holding1(change...) owned by neutral passive to center of Player 1(region on the player) Change ownership of random unit in player 1(change...) owned by neutral passive to player 1(change per playa) and change color Set Player[1(change} = 0 Phew... that was a lot of typing. Well If this sounds confusing at all i'll be happy to help. |
| 02-05-2003, 10:53 PM | #3 |
Try a leaderboard, its more descriptive than GOLD 55 WOOD 66 or something, have something like AMMO: 55/66 in leaderboard |
| 02-05-2003, 10:59 PM | #4 |
We needed to solve this same problem in the First Person Shooter mod. I gladly help you in anyway you want but give some idea of your exact desire. Like multiple weapons where if you type 1 it selects the pistol or type 2 and it selects a rifle or do you want it more simple where always have the last weapon you picked up selected until in runs dry. Also a little note on the key press movements. Don't do it. Without a secondary program such as our mod ses there is no way to detect when a button is held down. This results in constantly pressing a button to move which we determine to be...dull. I suggest sticking with the normal clicking. However if you want I can tell you how to do it using buildings and hotkeys but it's a pain to play. You have begun imbarking on quite the project here but like I said ask any specific question and I'll be glad to help. |
| 02-06-2003, 12:03 AM | #5 |
docter doom i was thinking ether having the player type the gun like "w2" or they type "pistol". Or they press a key like "k" and you select a diffrent building and then press "2" and you got the pistol. also you made FPS and that was an awsome game.:D . fyre daug the leader board was a great idea:D |
| 02-06-2003, 12:11 AM | #6 |
I think I have the answer- For picking up ammo- PHP Code:
For shooting with the select units trigger(AskunitsGanon about using the mouse or other keys) PHP Code:
One problem is determining if you have ammo whule your shooting. |
| 02-06-2003, 01:15 AM | #7 |
Once the player hits 0 gold turn him into a footman or other melee unit. |
| 02-06-2003, 01:25 AM | #8 |
yo guys im probaly going to have ether the foot man idea or you go to the next wepon the list like you have a rifle and you run out of ammo and you get pistol. also doc doom how do you get the thing were the building you need for key pressing is alwas selected and jumps back to it. also the key press is used by the "if/then/else" rightemote_confused |
