• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] How to make rock, paper, scissor?

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
here is the detail.

a player has one unit at start of the game. its invisible so the enemy player don't know what unit he has.

the unit can change to any unit *rock, paper or scissor*

when the timer expires both unit can be seen *about 10-15 sec*

then a trigger that checks who player wins

so, how do i do these?
 
Level 5
Joined
Nov 7, 2007
Messages
134
Well, I suggest starting by giving the original unit and any unit it can morph into (I suppose that would be rock, paper or scissors) the skill Ghost (the one Shade has). As for the changing of units, this can be done in various ways. You could make three skills based on different morphing skills (I suggest Bear Form (Druid of the claw), Storm Crow Form (Druid of the talon) and Stone Form (Gargoyle)) and change them so that the units the skills morphs into is the three units you want. Then add these skills to the original unit and place one unit of this type for each player. Then make a trigger which sets a timer to expire in 15 seconds, and let the players cast one of the morphing skills in order to choose which of the rock, paper or scissors it will play. When the timer expires, remove the Ghost ability from both units via triggers and run a trigger which has a bunch of If/Then/Else-actions (one for each possible outcome of the game). Make the first one check "If Player 1 has Rock and player 2 has Rock", then display Draw (I guess). Make the second one check "If player 1 has Rock and player 2 has Scissors", then display Victory for Player 1. Make the third one check "If Player 1 has Rock and player 2 has Paper", then display Victory for player 2. Then just keep making those for each possible outcome of the game, and then you should have it.

You got all that or do you want something explained more detailed?
 
Level 9
Joined
Apr 7, 2010
Messages
480
your explanation is great, but i am having problems with this.

--> since i don't have 2 computers right now, i can't check if changing the unit (morph) would make the unit visible for a short time (fading time) ..
this is the problem i have when i used permanent invisibility. lol.
haven't tried the skill Ghost, is there a difference?
 
Level 5
Joined
Nov 7, 2007
Messages
134
Yes, I think there would be a difference, since Ghost has no fade time; the unit becomes invisible instantly. You could also modify Permanent Invisibility in the Object Editor and set duration to 0, since the duration in this case means the fading time. But I'm pretty sure Ghost already has 0 fading time.
 
Status
Not open for further replies.
Top