Share
Go down
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Ammo System

on Thu 23 Feb 2006, 16:04
You can use every Ability for "Reload" you just have to remove damage and cooldown of the Ability and set the Casting time on Heros/Units to the Time you want it takes to reload the Weapon


No Clip Reload
Code:
Event
    Unit - A unit Starts the Effect of an Ability


Condition
    (Ability being cast) Gleich Reload
    ((Owner of (Casting unit)) Current Wood more | Equal to 0

Aktionen
    Animation - Play (Casting unit)'s stand animation
    Unit - Order (Casting unit) to Stop
    Game - Display to (All players) the text: ---You do not have enough Clips---

Fires
Code:
Event
    Unit - A unit  gets attacked

Condition
    ((Owner of (Attacking unit)) controller) Equal to User

Aktionen
    Player - Add -1 to (Owner of (Attacking unit)) Current Gold

No Ammo
Code:
Event
    Unit - A unit gets attacked

Condition
    ((Owner of (Attacking unit)) controller) Equal to User
    ((Owner of (Attacking unit)) Current Gold) Equal to 0

Aktionen
    Unit - Order (Attacking unit) to Stop


Reload
Code:
Event
    Unit - A unit stops casting an Ability

Condition
    (Ability being cast) Equal to Reload

Aktionen
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        'IF'-Condition
            ((Owner of (Casting unit)) Current Wood)  more | Equal to 1
        'THEN'-Aktionen
            Player - Set (Owner of (Casting unit)) Current Gold to 50
          Player - Add -1 to (Owner of (Casting unit)) Current Wood
        'ELSE'-Aktionen
            Unit - Order (Casting unit) to Stop
            Game - Display to (All players) the text: ---You do not have
            enough Clips---


Last edited by on Thu 23 Feb 2006, 16:46; edited 3 times in total
avatar
Sunny_D
LTG
LTG
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

Re: Ammo System

on Thu 23 Feb 2006, 16:16
yea, good one. i solved it similar - i just combined trigger 2 and 3 in one... btw: are you currently working on a map asgard?

hm... and some parts are in german... heh, i use WEU - therefore my triggers appear englisch not german Wink
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Thu 23 Feb 2006, 16:43
So fixed the german stuff i think...

Yes im working on a map but i dont need save/load - Ammo System or something like this i just made this for fun and maybe i need it one day lol!
avatar
Sath
MG
MG
Posts : 1584
realm_3
Réputation : 62

Regist Date : 2005-07-15
http://dotd6.net

Re: Ammo System

on Thu 23 Feb 2006, 16:59
OK ty , german is not easy to read ^^
avatar
Kiddrian
SGM
SGM
Posts : 186
realm_1
Réputation : 0

Regist Date : 2007-01-27
http://freewebs.com/warcraftstarcraft

Re: Ammo System

on Sat 27 Jan 2007, 08:38
Good Things:
Reloading is enabled
Ammo is in
Unlimited Ammo
Bad Things:
Uh....
What about if the ammo is an item. Like the S3 Marine Survival Corp
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Sat 27 Jan 2007, 20:41
Kiddrian wrote:What about if the ammo is an item. Like the S3 Marine Survival Corp

Then you need another system Cool

But that's not the difficults thing in the world, but for some maps this function is not nessecary (like dotd)
avatar
Kiddrian
SGM
SGM
Posts : 186
realm_1
Réputation : 0

Regist Date : 2007-01-27
http://freewebs.com/warcraftstarcraft

Re: Ammo System

on Sun 11 Feb 2007, 01:07
Good. I just like it when triggers appear to be helpfull.
Moonstorm
SG
SG
Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

Re: Ammo System

on Mon 19 Feb 2007, 15:27
i tried to make a ammo system of that script but i dident under stand can some body explane a little esier plz.
avatar
Sunny_D
LTG
LTG
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

Re: Ammo System

on Mon 19 Feb 2007, 15:44
hm... what in particular you didnt understand / didnt work?

you have wood as clips and gold as bullets. if one attacks you add -1 gold to that player. with (in that example) one clip being 50 bullets (see last trigger).

basically you can just copy and paste the triggers if you want to do it that way. if you want to modify, post here what you actually want to modify.

....................

"Sir, we are surrounded!". "Excellent, then we can attack in any direction."
Moonstorm
SG
SG
Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

Re: Ammo System

on Mon 19 Feb 2007, 16:10
how do i copy and paste the trigger?
avatar
Sunny_D
LTG
LTG
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

Re: Ammo System

on Mon 19 Feb 2007, 16:15
from here? not possible, heh. just meant that you take over the same triggers in your map ^^

dont you find one of the actions?

....................

"Sir, we are surrounded!". "Excellent, then we can attack in any direction."
Moonstorm
SG
SG
Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

Re: Ammo System

on Mon 19 Feb 2007, 16:44
((Owner of (Attacking unit)) Current Gold) Equal to 0
thats the one i cant find
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Mon 19 Feb 2007, 16:50
I did the trigger on a map where you can copy everything
Ammo System
Moonstorm
SG
SG
Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

Re: Ammo System

on Mon 19 Feb 2007, 16:54
Thanks a lot but how do i import it to the game?

Merged: thanks a lot again if i were a rich guy i woud give you a million dollars
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Mon 19 Feb 2007, 17:16
copy the reload ability and the triggers (Right-Click and copy)

....................



You know, zombies can be stopped with axe blows to the head, chainsaw attacks to the neck, shotgun blasts to the face, and stakes driven through their chests.
The interesting thing is that all of these methods work on normal people, so there`s no need to learn a new set of skills.
avatar
Sunny_D
LTG
LTG
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

Re: Ammo System

on Mon 19 Feb 2007, 19:03
Moonstorm wrote:if i were a rich guy i woud give you a million dollars

asgard, the appropriate answer to this would have been "I would also take 100$" ^^

btw: best method to copy/paste triggers is to first open your map and the map you take the triggers from, put all triggers there into one category and copy the category. with the "Window" section in the main-bar you can switch between all opened maps immediately Wink

....................

"Sir, we are surrounded!". "Excellent, then we can attack in any direction."
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Mon 19 Feb 2007, 19:53
Mhhh i always ask myself how you open more then one map at the same time.

....................



You know, zombies can be stopped with axe blows to the head, chainsaw attacks to the neck, shotgun blasts to the face, and stakes driven through their chests.
The interesting thing is that all of these methods work on normal people, so there`s no need to learn a new set of skills.
avatar
Sunny_D
LTG
LTG
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

Re: Ammo System

on Mon 19 Feb 2007, 20:13
yes?

1) open one map
2) open another map (File/Open Map) without closing the first one of course


....................

"Sir, we are surrounded!". "Excellent, then we can attack in any direction."
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Mon 19 Feb 2007, 20:30
mhh the we always says "Just one instance of the programm can run at the same time"

....................



You know, zombies can be stopped with axe blows to the head, chainsaw attacks to the neck, shotgun blasts to the face, and stakes driven through their chests.
The interesting thing is that all of these methods work on normal people, so there`s no need to learn a new set of skills.
avatar
Sunny_D
LTG
LTG
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

Re: Ammo System

on Mon 19 Feb 2007, 23:39
huh? dont you have enough RAM or something? ^^

or you probably dont have the latest patch installed... it works fine for me.

btw, i dont mean double click a map, i mean File/Open map. if you just double click a map, it wont work!

....................

"Sir, we are surrounded!". "Excellent, then we can attack in any direction."
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Tue 20 Feb 2007, 01:07
mhh will try it later but now i go to bed xD
Moonstorm
SG
SG
Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

Re: Ammo System

on Wed 21 Feb 2007, 15:22
How do u make the gold and lumber symbols in the corner look like bullets and clips?
avatar
Asgard_Ragna
COL
COL
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-20

Re: Ammo System

on Wed 21 Feb 2007, 16:17
Advanced -> Game Interface and then look for the Gold/Lumber Interface thingy and change it to the Bullet/Clip Picture

....................



You know, zombies can be stopped with axe blows to the head, chainsaw attacks to the neck, shotgun blasts to the face, and stakes driven through their chests.
The interesting thing is that all of these methods work on normal people, so there`s no need to learn a new set of skills.
Sponsored content

Re: Ammo System

Back to top
Permissions in this forum:
You cannot reply to topics in this forum