Staredit Network

Staredit Network -> UMS Assistance -> rather hard to deal with
Report, edit, etc...Posted by Carlsagan43 on 2005-04-10 at 22:30:32
I am currently working on a map called hearts in which you play a game of hearts. (duh) Well, basically heres how the system works:

Cards are randomly distributed to players and then the players get to choose which cards to trade.

Once the cards are traded, the only person who can go is the one with a the 2 of clubs at his "base". Once that happens, all the normal rules apply. The normal rules state that you can only go if there are 1-3 cards on the table and its your turn. There are two types of that trigger for each suit and for each player. One is if you have the suit, the other if you don't. Each card you play has a mineral value associated with it. If you play a card that is not of the same suit as the leading card you don't take minerals and thus void your self from being considered for picking up the hand

Next are the leading triggers in which if there are no more cards on the table and its your turn you can lead with what you want and set the suit. It also limits you to whether or not you can play hearts.

Finally ( and problematic) are the pickup triggers. They state that if you have the most minerals you pick up all the hearts for that round, sets it to your turn to lead, and clears all the mineral values.



So, on to my problem. I wanted my map to be comprehensive in that you didn't need all four players to be human in order to play, as 4 players are required to play hearts. So, i added computers. To conserve time making triggers i had the computers p5-8 pickup the minerals doled out to p1-4 if that play wasn;t there, because p1-4 would not be considered for picking up the hand after all four cards were played. Here's the problem. Everytime a computer picks up the hand it's card value played remains the same. I have made sure every pickup trigger resets everyones mineral value back to 0 but it refuses to fire, even though all the other actions in the trigger continue to fire. No other triggers look at the mineral value except for the card to minerals trigger, and i have been over that. If anyone know how to play hearts and woul;d be willing to help me i will send them the unprotected copy to look over. This is a very annoying bug and one which i cannot seem to stamp out
Report, edit, etc...Posted by LegacyWeapon on 2005-04-10 at 22:53:10
Did you make sure you have the trigger running for the computer player as well?

Maybe you can send me the map but I won't be able to help and look at it until tomorrow sad.gif
Report, edit, etc...Posted by Carlsagan43 on 2005-04-10 at 22:58:28
ok ill send it to you tommarow. And yes, the trigger fires for the computer becuase all the other actions on the trigger for the computer fire
Next Page (1)