You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by MosheLevi, Mister SCP

Hop to:    
Welcome! You are not logged in. Please Login or Register.3 replies
Age of Empires III Heaven » Forums » Scenario Design » need help with rock, paper, scissors
Bottom
Topic Subject:need help with rock, paper, scissors
lanks
Skirmisher
posted 10-29-05 09:09 PM EDT (US)         
im trying to make a game of rock paper scissors in my map. i planned it on paper but ive gone wrong somewhere so if you can please feel free to help. basically a player stands on one of three spots to make their choice, below is what i have so far:

trigger 1
condtion
units in area (1 unit with a radius of 10)
effect
quest var randomise
Comp_ANS
1 min
3 max
rounding on

trigger 2
condtion
units in area (1 unit with a radius of 10)
effect
quest var set
P1_ANS
sets it to 1-3 depending on choice

trigger 3
condtion
quest var compare
P1_ANS == Comp_ANS
effect
quest var set
send chat from player
it was a tie, you loose your unit
P1_ANS == 0

trigger 4
condtion
quest var check
P1_ANS == 1 (rock)
quest var check
Comp_ANS == 3 (scissors)
effect
send chat to play
you have won, you recieve 3 units
active trigger trigger 5

trigger 5 (is used in other places to recieve same units so i thought it would be better to have it as a different trigger)
condition
effect
spawn unit unit

at first when i tested i was spammed with "it is a tie" because P1_ANS = 0 = Comp_ANS. so i made the tie trigger start up later but before that i set Comp_ANS to something not 0, then the tie trigger wouldnt work. can anyone suggest a better way of doing this

AuthorReplies:
sziggi
Skirmisher
posted 10-29-05 11:27 PM EDT (US)     1 / 3       
three funtioning random triggers becomes a multipul of nine events, each with the option of win lose or draw player selects his choice

(in this case paper) => fire random=(3)all option of nine fired/paper is set qv 2 fired for the tag 1.)rock 2.)paper 3.)sissors

ran(3) chooses r,p s and the id of your choice is the outcome.

random 3 chooses rock/ qv 1 ----- wraps xyou win
----------------------------qv-2-------draw
----------------------------qv-3-------snip snip edited


so ruffly nine trigger funtioning plus you messages and choices.

[This message has been edited by sziggi (edited 10-30-2005 @ 01:27 AM).]

lanks
Skirmisher
posted 10-30-05 06:52 AM EDT (US)     2 / 3       
so what your saying is to check if player 1 wins, ties or looses i should have 9 triggers, one for each of the possible outcomes?
sziggi
Skirmisher
posted 10-30-05 11:17 AM EDT (US)     3 / 3       
yes but in three groups

rock 1,2,3
paper would have 3
and ect (1,2,3, each with its outcome win lose or draw )

1.)so three (player choices)set the id qv1 =(what is it r p s)

2.) these three fire a qv2 random 3 wich inturn fires three trigs= rock papper sissor(the computs choices)


3.)then each one, like on top there ^^^fires the possible three out come that have a condition 1, 2, 3, the same as the players "set qv1=?" these are just making a match with player choice, the first trig.


4.)then fire your messages,

Note:
the only trigger on is the three choices at the beggining every thing else is conected through the fire event trig.

You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires III Heaven | HeavenGames