• 0

    posted a message on Looping trigger

    I have two triggers. I have three buttons and three checkboxes, and the function of the first trigger is to, in case the button corresponding to the checkbox is pressed, check of the corresponding checkbox and uncheck the two other checkboxes that I have. The other trigger simply checks the used dialog item (checkbox) in case and unchecks the two others. The goal of this is to make only one checkbox selectable at a time.

    To prevent the trigger from looping I've made sure that the trigger that detects a change in the checkboxes is shut of while the trigger checks and unchecks the checkboxes. It didn't work apparently, as it is looping like crazy. Checking one checkbox works, but when I try to check off another it goes into a lopp (while it's supposed to uncheck the first box)

    Checkbox is checked
        Events
            Dialog - Any Dialog Item is used by Player Any Player with event type Checked
        Local Variables
        Conditions
        Actions
            General - Pick each integer from 1 to 6, and do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering player) == (Picked integer)
                            And
                                Conditions
                                    (Used dialog item) == Protoss checkbox[(Picked integer)]
                        Then
                            Trigger - Turn (Current trigger) Off
                            Dialog - Set Protoss checkbox[(Picked integer)] to Checked for (All players)
                            Dialog - Set Zerg checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Terran checkbox[(Picked integer)] to Unchecked for (All players)
                            Variable - Set Wants to be[(Picked integer)] = "Protoss"
                            Trigger - Turn (Current trigger) On
                        Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering player) == (Picked integer)
                            And
                                Conditions
                                    (Used dialog item) == Zerg checkbox[(Picked integer)]
                        Then
                            Trigger - Turn (Current trigger) Off
                            Dialog - Set Protoss checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Zerg checkbox[(Picked integer)] to Checked for (All players)
                            Dialog - Set Terran checkbox[(Picked integer)] to Unchecked for (All players)
                            Variable - Set Wants to be[(Picked integer)] = "Zerg"
                            Trigger - Turn (Current trigger) On
                        Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering player) == (Picked integer)
                            And
                                Conditions
                                    (Used dialog item) == Terran checkbox[(Picked integer)]
                        Then
                            Trigger - Turn (Current trigger) Off
                            Dialog - Set Protoss checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Zerg checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Terran checkbox[(Picked integer)] to Checked for (All players)
                            Variable - Set Wants to be[(Picked integer)] = "Terran"
                            Trigger - Turn (Current trigger) On
                        Else
    
     Button is pressed
        Events
            Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
        Local Variables
        Conditions
        Actions
            General - Pick each integer from 1 to 6, and do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering player) == (Picked integer)
                            And
                                Conditions
                                    (Used dialog item) == Protoss Button[(Picked integer)]
                        Then
                            Trigger - Turn Checkbox is checked Off
                            Dialog - Set Protoss checkbox[(Picked integer)] to Checked for (All players)
                            Dialog - Set Zerg checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Terran checkbox[(Picked integer)] to Unchecked for (All players)
                            Variable - Set Wants to be[(Picked integer)] = "Protoss"
                            Trigger - Turn Checkbox is checked On
                        Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering player) == (Picked integer)
                            And
                                Conditions
                                    (Used dialog item) == Zerg Button[(Picked integer)]
                        Then
                            Trigger - Turn Checkbox is checked Off
                            Dialog - Set Protoss checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Zerg checkbox[(Picked integer)] to Checked for (All players)
                            Dialog - Set Terran checkbox[(Picked integer)] to Unchecked for (All players)
                            Variable - Set Wants to be[(Picked integer)] = "Zerg"
                            Trigger - Turn Checkbox is checked On
                        Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Triggering player) == (Picked integer)
                            And
                                Conditions
                                    (Used dialog item) == Terran Button[(Picked integer)]
                        Then
                            Trigger - Turn Checkbox is checked Off
                            Dialog - Set Protoss checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Zerg checkbox[(Picked integer)] to Unchecked for (All players)
                            Dialog - Set Terran checkbox[(Picked integer)] to Checked for (All players)
                            Variable - Set Wants to be[(Picked integer)] = "Terran"
                            Trigger - Turn Checkbox is checked On
                        Else
    
    Posted in: Triggers
  • 0

    posted a message on Condition: X divided by 5 = true number?
    Quote from Kueken531: Go

    Also, as far as I was told, counting up an additional variable to 5 is more performant for most applications, because addition is way easier to do for a computer than division, which is done internally for mod.

    Could you explain that further?

    Posted in: Triggers
  • 0

    posted a message on Condition: X divided by 5 = true number?

    @Khaztr: Go

    Yea, I'm not familliar with the english term, but I guess it's called integer. I'll try it out, thanks for your help!

    Posted in: Triggers
  • 0

    posted a message on Condition: X divided by 5 = true number?

    @Khaztr: Go

    How come it's X mod 5 = ZERO?

    Posted in: Triggers
  • 0

    posted a message on Condition: X divided by 5 = true number?

    I want a trigger to run each time my integer reaches 5, 10, 15, 20, 25 etc... For that, I'm using an if then else action and I COULD just make a lot of conditions, but I'd like to keep it neat. So is there any mathematical condition I can use to verify whether an integer divided by 5 = a true number?

    Posted in: Triggers
  • 0

    posted a message on Abilities's Levels

    @MacSC2: Go

    Create 3 different spells.

    Posted in: Data
  • 0

    posted a message on Rotating decals not working ingame

    It might have something to do with your video settings in-game.

    Posted in: Data
  • 0

    posted a message on Diablo 3 Open Beta
    Quote from BorgDragon: Go

    I am sad... Open Beta is over :(

    Level 13 Barb, 13 Demon Hunter, 10 Witch Doctor, 10 Monk, 10 Wizard, 11 Barbarian(yea, 2 of them), Got the blacksmith to level 3, was just short of the last upgrade to get to level 4.

    My class thoughts. Pre beta Faves: in order, most to least. Demon Hunter, Barbarian, Wizard, Witch Doctor, Monk. Barbarian : seemed really strong against groups of stuff, could just obliterate entire groups with Cleave+Exploding Rune. Rend+Range Increase Rune... deadly combo when surrounded from every angle. Shockwave and Pillar of the Ancients... meh. Bash is a no go overall. LOVE Ancient Spear. Fury system is great, plays well into the character. Leap attack and Ancient Spear gives a nice amount of fury for a quick Rend or Shockwave. Remains 2nd Fave. Demon Hunter : Started off weak, but quickly escalates into a bringer of pain. Chakram is amazing, Rapid Fire without the Cost reduction rune was just... not feasible. Hungering Arrow once you get 2 hand crossbows tears everything to bits. Vault's great for dodging and getting around. Discipline/Hatred system is also great, Smoke Screen seems like a great utility, but costs too much Discipline for 2 seconds... just Vault away instead. Remains 1st Fave. Monk : Saw my friend playing one and I thought it seemed rather cool, so I made one next game. Seems like a mostly support-type class, with Breath of Heaven(Heal) and Blinding Flash, even his abilities with Runes seemed entirely too weak compared to Barbarian and Demon Hunter. Felt weak through most of the playthrough... only class I came close to dying with, in a 1 player game no less... Note to self: Do not play a Monk on Hardcore. His charge/run ability is just ridiculous(as in stupid/useless). Having that much Spirit at first seemed like a good thing, but all the Spirit Costing abilities require entirely too much Spirit. Takes too long to fill it up from Empty. Still remains in last place. Wizard : Weak as hell until you can find a good weapon to boost your abilities. Good weapon + Arcane Orb = meat paste and bone dust. Shock Pulse with the first exploding rune turns the Wizard into a veritable point-blank 1hit killer of groups, as long as 1 dies, they should all die. Cannot see myself devoting a skill slot to Diamond Skin... I hate recasting short buffs all the time on ANY game. I'd accept less effect for longer duration. Wave of Force, only really used it to destroy rooms with jars. If surrounded, just Frost Nova Shock Pulse/Arcane Orb the mobs into Ice Cubes. Arcane Energy system seemed balanced, though I thought(just a few times) that Arcane Orb cost a bit much. Remains 3rd-ish place overall. Witch Doctor : As I first played the WD I wasn't sure what to think. Slow start, Zombie Dogs didn't really seem to do much. Corpse Spiders... didn't really like it, other than the fact it LOOKED awesome. Firebats drains entirely too much mana for the short range that it gets. If I had gotten to level 11 and unlocked the rune for it, I'm sure I would have liked it a bit more(longer range, more damage, fewer bats). Poison Dart didn't really like it until I unlocked the Triple Dart rune. Pwnage city with Triple Dart and a good DPS weapon. Soul Harvest! Gain X intelligence per enemy(up to 5 enemies) for 30 seconds. Could see some real use for this and Firebats. It adds an INSANE amount of Maximum Mana for 30 seconds. Grasp of the Dead is good only because it has such a large area of effect. Great crowd control. Mana regenerates fast enough overall, like I said, Firebats was the only problem with it. I can see the Witch Doctor becoming more powerful as you go on, so that's a plus in my book. Also, not as weak as the Monk. One thing I did not like about the Witch Doctor(I made a male WD) when standing around, it looks like he has the shakes and should go see a doctor. I just kept laughing... Give that WD some Diazepam damnit! Brought this from 4th fave and tied it with the Wizard.

    In Short: Monk is weak and sucks. Demon Hunter and Barbarian are power houses, Wizard and Witch Doctor will likely be power houses later on in their "career".

    The prospect of being a Super Saiyan Barbarian makes me laugh, in both a good way and a bad way.

    I am scared.

    - I leveled my witch doctor to 8 and got bored.

    Posted in: Off-Topic
  • 0

    posted a message on Custom health bars - how to?

    @Simoneon: Go

    I don't think this can be done through triggers - if it could, it woulda be very hard for a computer to handle.

    Posted in: Triggers
  • 0

    posted a message on End of Nations
    Embed Removed: https://www.youtube.com/v/9QyQ9PsOj6A?fs=1

    If this was the soundtrack, I'd buy it. Too bad :/

    Posted in: Off-Topic
  • 0

    posted a message on Upgrade research times

    Those times were specified through experiments and testing, then balancing. I'd suggest that you do the same. There isn't a specific protocol for this kind of thing.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Diablo 3 Open Beta
    Quote from zeldarules28: Go

    Error 37 means there is no room left for you. The servers right now are down, or have a very low player cap. They'll be bringing more servers online soon.

    I managed to get through about 1 and a half times with my witch doctor, but now it's down.

    Same. I found the best way to get in is to copy and paste your password loads of times. Also, private games seem to be malfunctioning (error 3006).

    Posted in: Off-Topic
  • 0

    posted a message on Diablo 3 Open Beta
    Quote from xcorbo: Go

    @SkrowFunk: Go

    I have stayed out of everything related to D3 as well, if it sucks well then TOO BAD I'm still buying it :P But I will try this to the point of "can I run it?" "Yes?" *delete*

    That has been my only concern so far :P

    If you can run SC2, you can run D3 ^^

    Posted in: Off-Topic
  • 0

    posted a message on Diablo 3 Open Beta

    @zeldarules28: Go

    Downloading now. Heard that there are loads of bugs with the launcher though, and I'll have to think about what Moz said... You might have a point there.

    Posted in: Off-Topic
  • 0

    posted a message on Barrier of time

    Anything crossing the barrier would be reversed and sent directly back to the other side - hence no communication or sight is possible because the same would apply to stuff like light and soundwaves?

    If all else fails; the answer is rocks. Lots of rocks.

    EDIT: Now that I think about it, wouldn't it just stand still on the very edge of the barrier? If i threw a rock through the barrier, by my logic, it would return, but then it would be reversed again, but then again nothing from the other side of the barrier can affect me, but... but... butt?

    EDIT2: Because I totally didn't think about it before. Not at aaaaallll...

    Posted in: Off-Topic
  • To post a comment, please or register a new account.