Go down
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Ammo System

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
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Ammo System Pp_adm10
Regist Date : 2006-02-04

Ammo System Empty Re: Ammo System

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
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

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!
Sath
Sath
MG
MG
Posts : 1576
realm_3
Réputation : 62
Ammo System Pp_fou10
Regist Date : 2005-07-15
http://dotd6.net

Ammo System Empty Re: Ammo System

Thu 23 Feb 2006, 16:59
OK ty , german is not easy to read ^^
Kiddrian
Kiddrian
SGM
SGM
Posts : 186
realm_1
Réputation : 0
Ammo System Pp_mem10
Regist Date : 2007-01-27
http://freewebs.com/warcraftstarcraft

Ammo System Empty Re: Ammo System

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
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

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)
Kiddrian
Kiddrian
SGM
SGM
Posts : 186
realm_1
Réputation : 0
Ammo System Pp_mem10
Regist Date : 2007-01-27
http://freewebs.com/warcraftstarcraft

Ammo System Empty Re: Ammo System

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

Ammo System Empty Re: Ammo System

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.
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Ammo System Pp_adm10
Regist Date : 2006-02-04

Ammo System Empty Re: Ammo System

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.
avatar
Moonstorm
SG
SG
Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

Ammo System Empty Re: Ammo System

Mon 19 Feb 2007, 16:10
how do i copy and paste the trigger?
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Ammo System Pp_adm10
Regist Date : 2006-02-04

Ammo System Empty Re: Ammo System

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?
avatar
Moonstorm
SG
SG
Posts : 28
realm_1
Réputation : 0
Regist Date : 2006-12-07

Ammo System Empty Re: Ammo System

Mon 19 Feb 2007, 16:44
((Owner of (Attacking unit)) Current Gold) Equal to 0
thats the one i cant find
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

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

Ammo System Empty Re: Ammo System

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
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

Mon 19 Feb 2007, 17:16
copy the reload ability and the triggers (Right-Click and copy)
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Ammo System Pp_adm10
Regist Date : 2006-02-04

Ammo System Empty Re: Ammo System

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
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

Mon 19 Feb 2007, 19:53
Mhhh i always ask myself how you open more then one map at the same time.
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Ammo System Pp_adm10
Regist Date : 2006-02-04

Ammo System Empty Re: Ammo System

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

Ammo System Rolleyesln4
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

Mon 19 Feb 2007, 20:30
mhh the we always says "Just one instance of the programm can run at the same time"
Sunny_D
Sunny_D
LTG
LTG
Posts : 1653
realm_1
Réputation : 3
Ammo System Pp_adm10
Regist Date : 2006-02-04

Ammo System Empty Re: Ammo System

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!
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

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

Ammo System Empty Re: Ammo System

Wed 21 Feb 2007, 15:22
How do u make the gold and lumber symbols in the corner look like bullets and clips?
Asgard_Ragna
Asgard_Ragna
COL
COL
Posts : 750
realm_3
Réputation : 7
Ammo System Pp_off10
Regist Date : 2006-01-20

Ammo System Empty Re: Ammo System

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
Sponsored content

Ammo System Empty Re: Ammo System

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