| 02-24-2010, 02:19 PM | #1 |
Since this is my first post at wc3c, Hello! I was talknig to someone in a chat lobbly and wc3c came into the convo, and here i am. Sorry if this is the totally wrong place for this, I rarly use forums (this seemed like the right place though) Anyway, I've been playing warcraft 3 since it came out, I have always enjoyed the game and still play to date (Hence why im here) now call me strange, I not once touched the world editor, never thought i would need to as there where so many different maps being made (Im not so sure about that now though) How ever, in recent times i keep finding Dota this dota that (Yes call me a little late) but dota well is losing its charm for me, I only play since it since its pretty much 98.8% time fillnig the find custom game lobby. Im more of a simple person, I like simple maps. Anyone of you remember maps like (Im gonig back a while): 1. Dark Deeds (Non-Hacked version) 2. Warewolf (The decent English Version) In both these style maps, a random player is chosen to become the master evil/killer. So here is where i now ask for help. I have spent the last day trying to guess the trigger system, With no luck. This could be a simple trigger or a hard one, 1. How do i make a trigger so when the game starts a random player out of X will be picked to play the bad guy? So noone else in the game knows, and make it so that player can turn into evil at will and attack the friendly players and can be attacked, but also turn back to being friendly where his allied again with everyone, untill he/she is found out. 2. How do i make a trigger so when the killer is attacking or being attacked music with a ping at the location, plays untill the combat ends (Like in Dark deds did) Sorry if this did not make any seanse :S |
| 02-26-2010, 10:47 AM | #2 |
1. Selecting a random player is fairly simple. If your map has n players, simply get a random integer between 1 and n and pick that player. Giving that player an anonymous evil creature might be a bit more tricky, though. I think that the only way to make it so that players can not tell who the evil creature belongs to is to give that creature to a computer player and then have that computer player give full shared control to the randomly selected player. Then, you would use triggers to hide the player's human and unhide the evil creature at his position whenever the player used the "morph" ability, and vice versa. 2. I am not familiar with dark deeds, but I imagine you would have a trigger that runs on the "attacked" unit event, if the attacker is the evil creature then turn on the music and start a timer. When the timer expires, turn off the music. If the evil creature keeps attacking, it will keep resetting the timer, so the music will not stop until the evil unit stops attacking. |
| 03-01-2010, 09:40 AM | #3 |
Thanks for the reply, Call me stupid but i cant work it out still for Random player part, the music i could handle (I think) How ever, The evil part sounds to complexe for me to atempt, So i had another idea/Question. Im happy for it to be a simple change that when someone is randomly chosen to be the evil it auto-changes there unit to the evil one, so they cant change back and foruth. Once your picked your picked you can pretend to not be the evil, But the problem i would face is... Is you cant hide who you are as it shows your names so all it takes me a non evil player to hover over the evil one and see who it is, Is there a way to change all players name ingame to something more like "Surviver" so even if your evil or not your name comes u/chat coems up as "surviver" not your acutlly name? Did that make sense? |
| 03-01-2010, 01:35 PM | #4 |
It is possible, however, it is not really the nicest way to do this. Giving the creature to a neutral computer player and then allying that player with the randomly selected human player and giving shared unit control seems like a lot better way to do this. |
