:: --=| Games & Modding |=-- :: - WARCRAFT 3 -
Share | 
 

 Ammo System

View previous topic View next topic Go down 
AuthorMessage
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Ammo System   Thu 23 Feb 2006, 18: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


Quote :
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---

Quote :
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

Quote :
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


Quote :
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, 18:46; edited 3 times in total
Back to top Go down
LTG
Sunny_D

avatar
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

PostSubject: Re: Ammo System   Thu 23 Feb 2006, 18: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
Back to top Go down
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Thu 23 Feb 2006, 18: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!
Back to top Go down
MG
Sath

avatar
Posts : 1584
realm_3
Réputation : 62

Regist Date : 2005-07-15

PostSubject: Re: Ammo System   Thu 23 Feb 2006, 18:59

OK ty , german is not easy to read ^^
Back to top Go down
http://dotd6.net
SGM
Kiddrian

avatar
Posts : 186
realm_1
Réputation : 0

Regist Date : 2007-01-27

PostSubject: Re: Ammo System   Sat 27 Jan 2007, 10: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
Back to top Go down
http://freewebs.com/warcraftstarcraft
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Sat 27 Jan 2007, 22: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)
Back to top Go down
SGM
Kiddrian

avatar
Posts : 186
realm_1
Réputation : 0

Regist Date : 2007-01-27

PostSubject: Re: Ammo System   Sun 11 Feb 2007, 03:07

Good. I just like it when triggers appear to be helpfull.
Back to top Go down
http://freewebs.com/warcraftstarcraft
SG
Moonstorm


Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 17:27

i tried to make a ammo system of that script but i dident under stand can some body explane a little esier plz.
Back to top Go down
LTG
Sunny_D

avatar
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 17: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."
Back to top Go down
SG
Moonstorm


Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 18:10

how do i copy and paste the trigger?
Back to top Go down
LTG
Sunny_D

avatar
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 18: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."
Back to top Go down
SG
Moonstorm


Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 18:44

((Owner of (Attacking unit)) Current Gold) Equal to 0
thats the one i cant find
Back to top Go down
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 18:50

I did the trigger on a map where you can copy everything
Ammo System
Back to top Go down
SG
Moonstorm


Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 18: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
Back to top Go down
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 19: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.
Back to top Go down
LTG
Sunny_D

avatar
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 21: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."
Back to top Go down
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 21: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.
Back to top Go down
LTG
Sunny_D

avatar
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 22: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."
Back to top Go down
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Mon 19 Feb 2007, 22: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.
Back to top Go down
LTG
Sunny_D

avatar
Posts : 1655
realm_1
Réputation : 3

Regist Date : 2006-02-04

PostSubject: Re: Ammo System   Tue 20 Feb 2007, 01: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."
Back to top Go down
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Tue 20 Feb 2007, 03:07

mhh will try it later but now i go to bed xD
Back to top Go down
SG
Moonstorm


Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

PostSubject: Re: Ammo System   Wed 21 Feb 2007, 17:22

How do u make the gold and lumber symbols in the corner look like bullets and clips?
Back to top Go down
COL
Asgard_Ragna

avatar
Posts : 756
realm_3
Réputation : 7

Regist Date : 2006-01-21

PostSubject: Re: Ammo System   Wed 21 Feb 2007, 18: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.
Back to top Go down
Sponsored content



PostSubject: Re: Ammo System   

Back to top Go down
 
Ammo System
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Pre-WotLK System Requirements
» Tau Smart Missile System
» SYSTEM-OF-A-DOWN app
» TCI Official Forum Ranking System
» ammo box in wolf3d

Permissions in this forum:You cannot reply to topics in this forum
dotd6.net :: --=| Games & Modding |=-- :: - WARCRAFT 3 --