Staredit Network

Staredit Network -> UMS Assistance -> Drawing System
Report, edit, etc...Posted by Brother_Leader on 2005-05-30 at 14:34:44
Ok, im making a map where you draw cards. Everything goes well until I get to the drawing system. Can someone please help me? I would really appreciate it. Thanks.
Report, edit, etc...Posted by BeeR_KeG on 2005-05-30 at 14:44:42
http://www.staredit.net/index.php?tutorial=61

Randomization Triggers would be the best simulation of shufleing your deck of cards.

Now that you have randomized your first card you need to keep that card from appearing again. You will have a separate switch for each card. When a card is drawn just set the switch. If it isn't let is stay disabled.

Now to actually draw the card, in your conditions you would have to implement the switch that tells you if it is drawn or not. You would also need to use Randomization Triggers and use those to determine which card will be drawn. If a card is drawn and you already have a switch telling you that it's been drawn then make it re-run the Randomization triggers until you get a card that hasn't been drawn.

It will take a large amount of triggers but they are all mostly the same. You don't need to use Switches to determine wether the card has already been drawn or not, you could use Death Counts, Physical Counts or any other means.
Report, edit, etc...Posted by Brother_Leader on 2005-05-30 at 14:54:23
ok. Thanks. but one way i thought of was when it is your turn, it automaticlly brings one unit there. Its like:

Trigger
Players:
¤ (player)
Conditions:
¤ (Player) brings one (unit) to 'draw'
Actions:
¤ create at most 1 any unit at 'drawplace'
¤ preserve trigger


I dont know if it might work. If it doesnt, Please tell me.
Report, edit, etc...Posted by in_a_biskit on 2005-05-31 at 04:13:18
Your trigger will continuously create units at 'drawplace'.

Try:
Trigger
Conditions:
¤ conditions here for the next card being the ace of spades
¤ Player 1 brings at least 1 unit to "draw a card"
Actions:
¤ Remove 1 unit for Player 1 at "draw a card"
¤ Create 1 'Ace of Spades' for Player 1 at "here's a card"
¤ Preserve Trigger
Report, edit, etc...Posted by DT_Battlekruser on 2005-05-31 at 19:48:54
The answer is no. Creating an "AnyUnit" will not random create a unit.
Next Page (1)