*Sigh* Weapon Firing Help

Ok... i didnt get your trigger at all... so i created my own.

Here they are:

Code:
HE Grenade
    Events
        Unit - Rifleman 0009 <gen> Begins casting an ability
    Conditions
        And - All (Conditions) are true
            Conditions
                Integer_EquipedGrenade Equal to 1
                (Ability being cast) Equal to Throw Grenade 
    Actions
        Set Integer_GrenadeNumber2 = (Integer_GrenadeNumber2 + 1)
        If (Integer_GrenadeNumber2 Equal to 1) then do (Trigger - Turn on Throwing Grenades <gen>) else do (Unit - Create 1 Mortar Team for Player 1 (Red) at (Position of Rifleman 0009 <gen>) facing (Facing of Rifleman 0009 <gen>) degrees)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Integer_GrenadeNumber2 Equal to 2
            Then - Actions
                Trigger - Turn off Throwing Grenades <gen>
                Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 0.00 percent
                Set Integer_GrenadeNumber2 = 0
                Unit Group - Pick every unit in (Units in (Playable map area)((Unit-type of (Picked unit)) Equal to Mortar Team)) and do (Actions)
                    Loop - Actions
                        Unit - Order (Picked unit) to Attack Ground ((Position of Rifleman 0009 <gen>) offset by ((Real(Integer_GrenadeNumber)) x 100.00) towards (Facing of Rifleman 0009 <gen>) degrees)
                        Wait (Real(Integer_GrenadeNumber)) seconds
                        Unit - Remove (Picked unit) from the game
            Else - Actions
                Unit Group - Pick every unit in (Units within 250.00 of ((Position of Rifleman 0009 <gen>) offset by ((Real(Integer_GrenadeNumber)) x 100.00) towards (Facing of Rifleman 0009 <gen>) degrees)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 75.00))
                Set Integer_GrenadeNumber = 0


Stun Grenade
    Events
        Unit - Rifleman 0009 <gen> Begins casting an ability
    Conditions
        And - All (Conditions) are true
            Conditions
                Integer_EquipedGrenade Equal to 2
                (Ability being cast) Equal to Throw Grenade 
    Actions
        Set Integer_GrenadeNumber2 = (Integer_GrenadeNumber2 + 1)
        If (Integer_GrenadeNumber2 Equal to 1) then do (Trigger - Turn on Throwing Grenades <gen>) else do (Unit - Create 1 Mortar Team for Player 1 (Red) at (Position of Rifleman 0009 <gen>) facing (Facing of Rifleman 0009 <gen>) degrees)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Integer_GrenadeNumber2 Equal to 2
            Then - Actions
                Trigger - Turn off Throwing Grenades <gen>
                Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 0.00 percent
                Set Integer_GrenadeNumber2 = 0
                Unit Group - Pick every unit in (Units in (Playable map area)((Unit-type of (Picked unit)) Equal to Mortar Team)) and do (Actions)
                    Loop - Actions
                        Unit - Order (Picked unit) to Attack Ground ((Position of Rifleman 0009 <gen>) offset by ((Real(Integer_GrenadeNumber)) x 100.00) towards (Facing of Rifleman 0009 <gen>) degrees)
                        Wait (Real(Integer_GrenadeNumber)) seconds
                        Unit - Remove (Picked unit) from the game
            Else - Actions
                Unit - Create 1 Tauren for Player 1 (Red) at ((Position of Rifleman 0009 <gen>) offset by ((Real(Integer_GrenadeNumber)) x 100.00) towards (Facing of Rifleman 0009 <gen>) degrees) facing Default building facing (270.0) degrees
                Hero - Modify unspent skill points of (Last created unit): Add 1 points
                Hero - Learn skill for (Last created unit): Orc Tauren Chieftain - War Stomp
                Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
                Unit - Remove (Last created unit) from the game
                Set Integer_GrenadeNumber = 0


Throwing Grenades
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set Integer_GrenadeNumber = (Integer_GrenadeNumber + 1)
        If (Integer_GrenadeNumber Equal to 1) then do (Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 14.28 percent) else do (Do nothing)
        If (Integer_GrenadeNumber Equal to 2) then do (Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 28.56 percent) else do (Do nothing)
        If (Integer_GrenadeNumber Equal to 3) then do (Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 42.84 percent) else do (Do nothing)
        If (Integer_GrenadeNumber Equal to 4) then do (Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 61.02 percent) else do (Do nothing)
        If (Integer_GrenadeNumber Equal to 5) then do (Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 75.30 percent) else do (Do nothing)
        If (Integer_GrenadeNumber Equal to 6) then do (Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 89.58 percent) else do (Do nothing)
        If (Integer_GrenadeNumber Equal to 7) then do (Advanced - Take (Last created multiboard) and set the fill state for the progress bar in row 6 to 100.00 percent) else do (Set Integer_GrenadeNumber = 0)

What do you think... i havent tested yet, but do you think it will work?
 
Don't know but from the looks of that spaghetti code, there's a high chance of bugs.

Not sure what you didn't quite get, all my code does is create two units and order one to attack the other, then get rid of them.
 
when i looked at it.... my brain went head and i forgot what the heck those action ment... so i took a break from WE and then like 3 seconds later i made that...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top