- Joined
- Jul 28, 2007
- Messages
- 920
You have deck with 60 cards
Max number of one type of card is 6
So each time when u draw card, number drops by one
Probem is, that i need system, coz seems like mine isnt working.
Its based on random number
from 1 to 60
if its 1 it draws card that is bind for that number, so 6 times 1 means 6 cards of same type
I need help there now...
When get 6 times number one, means that u got 6 same cards, and if u get number 1 again i dont know what should i do, i created, if number one is randomed 6 times, that system runs trigger again, but this crashes the map.
So how can i make system that detects that u have draw 6 times same card, and then removes that opinion.
Any idea ?
Here is m system, but it crashes when u get same number 7 times.
Card Draw System
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to |cffffcc00D|rraw Card
Actions
Set Draw_Random_Card[(Player number of (Owner of (Casting unit)))] = (Random integer number between 1 and 2)
Game - Display to (All players) the text: (String(Draw_Random_Card[(Player number of (Owner of (Casting unit)))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Casting unit)) Equal to Player 1 (Red)
(Name of Player 1 (Red)) Equal to tiger_cro
Then - Actions
-------- 1 - Ignacio Spider --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
"This is how same cards u may have in deck(its 6)=>"C_IS[(Player number of (Owner of (Casting unit)))] Greater than 0
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 1
Then - Actions
Hero - Create |CFF00FF00Ignacio Spider|r ;Forest and give it to tiger_cro
Set C_IS[(Player number of (Owner of (Casting unit)))] = (C_IS[(Player number of (Owner of (Casting unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
C_IS[(Player number of (Owner of (Casting unit)))] Less than 1
Then - Actions
Trigger - Run (This trigger) (checking conditions)
Else - Actions
-------- 2 - Forest --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 2
C_F[(Player number of (Owner of (Casting unit)))] Greater than 0
Then - Actions
Hero - Create Forest and give it to tiger_cro
Set C_F[(Player number of (Owner of (Casting unit)))] = (C_F[(Player number of (Owner of (Casting unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
C_F[(Player number of (Owner of (Casting unit)))] Less than 1
Then - Actions
Trigger - Run (This trigger) (ignoring conditions)
Else - Actions
-------- 3 - Satyr --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
C_SA[(Player number of (Owner of (Casting unit)))] Greater than 0
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 3
Then - Actions
Hero - Create |CFF00FF00Satyr|r ;Forest and give it to tiger_cro
Set C_SA[(Player number of (Owner of (Casting unit)))] = (C_SA[(Player number of (Owner of (Casting unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 3
C_SA[(Player number of (Owner of (Casting unit)))] Less than 1
Then - Actions
Trigger - Run (This trigger) (checking conditions)
Else - Actions
Else - Actions
Max number of one type of card is 6
So each time when u draw card, number drops by one
Probem is, that i need system, coz seems like mine isnt working.
Its based on random number
from 1 to 60
if its 1 it draws card that is bind for that number, so 6 times 1 means 6 cards of same type
I need help there now...
When get 6 times number one, means that u got 6 same cards, and if u get number 1 again i dont know what should i do, i created, if number one is randomed 6 times, that system runs trigger again, but this crashes the map.
So how can i make system that detects that u have draw 6 times same card, and then removes that opinion.
Any idea ?
Here is m system, but it crashes when u get same number 7 times.
Card Draw System
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to |cffffcc00D|rraw Card
Actions
Set Draw_Random_Card[(Player number of (Owner of (Casting unit)))] = (Random integer number between 1 and 2)
Game - Display to (All players) the text: (String(Draw_Random_Card[(Player number of (Owner of (Casting unit)))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Casting unit)) Equal to Player 1 (Red)
(Name of Player 1 (Red)) Equal to tiger_cro
Then - Actions
-------- 1 - Ignacio Spider --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
"This is how same cards u may have in deck(its 6)=>"C_IS[(Player number of (Owner of (Casting unit)))] Greater than 0
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 1
Then - Actions
Hero - Create |CFF00FF00Ignacio Spider|r ;Forest and give it to tiger_cro
Set C_IS[(Player number of (Owner of (Casting unit)))] = (C_IS[(Player number of (Owner of (Casting unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
C_IS[(Player number of (Owner of (Casting unit)))] Less than 1
Then - Actions
Trigger - Run (This trigger) (checking conditions)
Else - Actions
-------- 2 - Forest --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 2
C_F[(Player number of (Owner of (Casting unit)))] Greater than 0
Then - Actions
Hero - Create Forest and give it to tiger_cro
Set C_F[(Player number of (Owner of (Casting unit)))] = (C_F[(Player number of (Owner of (Casting unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
C_F[(Player number of (Owner of (Casting unit)))] Less than 1
Then - Actions
Trigger - Run (This trigger) (ignoring conditions)
Else - Actions
-------- 3 - Satyr --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
C_SA[(Player number of (Owner of (Casting unit)))] Greater than 0
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 3
Then - Actions
Hero - Create |CFF00FF00Satyr|r ;Forest and give it to tiger_cro
Set C_SA[(Player number of (Owner of (Casting unit)))] = (C_SA[(Player number of (Owner of (Casting unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Draw_Random_Card[(Player number of (Owner of (Casting unit)))] Equal to 3
C_SA[(Player number of (Owner of (Casting unit)))] Less than 1
Then - Actions
Trigger - Run (This trigger) (checking conditions)
Else - Actions
Else - Actions