| 06-22-2003, 12:14 AM | #1 |
1. When adding values to an integer, why does this work: Set PlayerTNL(Integer A) = PlayerTNL(Integer A) + (PlayerTNL(Integer A) / 4) But this does not work: Set PlayerTNL(Integer A) = PlayerTNL(Integer A) + (PlayerTNL(Integer A) * 10) Where PlayerTNL(Integer A) is an integer. 2. For a dialog I created, I setup a loop that runs through each player when a button is clicked, and finds the player that clicks the dialog button. When it finds the player, it displays which player clicked the button and runs a trigger (which uses Int A to run the trigger for that player). Although it displays the correct player that clicked a button, the trigger does not run.. Event: A dialog button is clicked for Startmenu A: For each (Int A) from 1 to 6, do (If (triggering player) Equal to PlayerNumber(Int A)) and ((Clicked Dialog button) Equal to StatMenuButton(0) then do (Trigger - Run XXXX <gen> checking conditions)) else do nothing A: Game - Display to all players (Player Playernumber(Int A) has clicked a button) PlayerNumber: Just a player array assigning players to an array StatMenButton: Dialog button array |
| 06-22-2003, 06:23 AM | #2 |
Because you can't multiply a 0... It's logical... But you can divide a zero in to 0.25 parts... Triggering player for dialog buttons does not work. No matter how you do it. You have to make a seperate dialog button variable for eatch player. Hope that was suffisient. Regards Dead-Inside |
| 06-22-2003, 07:16 AM | #3 |
1. Oops, forgot to initialize the array. Crafty bastards.. 2. Yeah, learned I had to do it manually, and was it ever ugly! ;P If TFT somehow ruins this, I'll crush them all! |
