- Joined
- Aug 3, 2008
- Messages
- 1,935
okay right now im making a Hero selection system. Its based on using arrow keys to help navigate your way to each hero... heres the background :
- Up is to select the hero, thats no problem
- Left arrow , is SUPPOSED to navigate your hero "frontwards"
- and the Right arrow is SUPPOSED to navigate you backwards, back the way you came.
It starts by setting 5 integer variables as different numbers as follows :
Selection Initialization Part 1
Now it runs through a series of triggers as shown :
Selection Initialization Part 2
is it wrong to have S_Selection = 0 , and then equal 1 ???? what can i set it to since 0 is a default !??!?? thats not even the main problem. Here is the Left arrow trigger that doesn't work. Instead it stays on the same hero. here :
Left Arrow Trigger
notice how when you press the LEFT arrow key, your supposed to change the S_Selection_key variable to a different class ( ex : S_Sage )
why doesn't this work ? its makes enough sence doesn't it ?
- Up is to select the hero, thats no problem
- Left arrow , is SUPPOSED to navigate your hero "frontwards"
- and the Right arrow is SUPPOSED to navigate you backwards, back the way you came.
It starts by setting 5 integer variables as different numbers as follows :
Selection Initialization Part 1
-
Events
-
Conditions
-
Actions
-
Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
-
Trigger - Turn on Constant Camera <gen>
-
Trigger - Run Constant Camera <gen> (ignoring conditions)
-
Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 0.00 seconds
-
Environment - Set fog to style Linear, z-start 0.00, z-end 425.00, density 0.50 and color (0.00%, 0.00%, 0.00%)
-
Environment - Set sky to None
-
Animation - Play the hide animation for all doodads of type AA Rogue Selection within Selection Region <gen>
-
Animation - Play the hide animation for all doodads of type AA Ranger Selection within Selection Region <gen>
-
Animation - Play the hide animation for all doodads of type AA Sage Selection within Selection Region <gen>
-
Set S_Warrior = 1
-
Set S_Ranger = 2
-
Set S_Rogue = 3
-
Set S_Sage = 4
-
Set S_Selection_Key = 0
-
Environment - Set sky to Fogged Sky
-
Camera - Apply Selection Camera <gen> for Player 1 (Red) over 0.00 seconds
-
Wait 2.00 seconds
-
Trigger - Turn on Dialog Welcome <gen>
-
Trigger - Run Dialog Welcome <gen> (ignoring conditions)
-
Now it runs through a series of triggers as shown :
Selection Initialization Part 2
-
Events
-
Conditions
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
D_Go Equal to (==) True
-
-
Then - Actions
-
Trigger - Turn on Dialog Intructions <gen>
-
Trigger - Run Dialog Intructions <gen> (ignoring conditions)
-
-
Else - Actions
-
Do nothing
-
-
-
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
D_Go_2 Equal to (==) True
-
-
Then - Actions
-
Set S_Selection_Key = S_Warrior
-
Trigger - Turn on Warrior Selection <gen>
-
Trigger - Run Warrior Selection <gen> (ignoring conditions)
-
Trigger - Run Turn On Arrow Selection <gen> (ignoring conditions)
-
-
Else - Actions
-
Do nothing
-
-
-
is it wrong to have S_Selection = 0 , and then equal 1 ???? what can i set it to since 0 is a default !??!?? thats not even the main problem. Here is the Left arrow trigger that doesn't work. Instead it stays on the same hero. here :
Left Arrow Trigger
-
Events
-
Player - Player 1 (Red) Presses the Left Arrow key
-
-
Conditions
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
S_Selection_Key Equal to (==) S_Warrior
-
S_Selection_Key Not equal to (!=) S_Ranger
-
S_Selection_Key Not equal to (!=) S_Rogue
-
S_Selection_Key Not equal to (!=) S_Sage
-
-
Then - Actions
-
Set S_Selection_Key = S_Ranger
-
Trigger - Run Ranger Selection <gen> (ignoring conditions)
-
-
Else - Actions
-
Do nothing
-
-
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
S_Selection_Key Equal to (==) S_Ranger
-
S_Selection_Key Not equal to (!=) S_Rogue
-
S_Selection_Key Not equal to (!=) S_Sage
-
S_Selection_Key Not equal to (!=) S_Warrior
-
-
Then - Actions
-
Set S_Selection_Key = S_Rogue
-
Trigger - Run Rogue Selection <gen> (ignoring conditions)
-
-
Else - Actions
-
Do nothing
-
-
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
S_Selection_Key Equal to (==) S_Rogue
-
S_Selection_Key Not equal to (!=) S_Sage
-
S_Selection_Key Not equal to (!=) S_Warrior
-
S_Selection_Key Not equal to (!=) S_Ranger
-
-
Then - Actions
-
Set S_Selection_Key = S_Sage
-
Trigger - Run Sage Selection <gen> (ignoring conditions)
-
-
Else - Actions
-
Do nothing
-
-
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
S_Selection_Key Equal to (==) S_Sage
-
S_Selection_Key Not equal to (!=) S_Warrior
-
S_Selection_Key Not equal to (!=) S_Ranger
-
S_Selection_Key Not equal to (!=) S_Rogue
-
-
Then - Actions
-
Set S_Selection_Key = S_Warrior
-
Trigger - Run Warrior Selection <gen> (ignoring conditions)
-
-
Else - Actions
-
Do nothing
-
-
-
notice how when you press the LEFT arrow key, your supposed to change the S_Selection_key variable to a different class ( ex : S_Sage )
why doesn't this work ? its makes enough sence doesn't it ?