- Asgard_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
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---
- Sunny_DLTG
- Posts : 1653
Réputation : 3
Regist Date : 2006-02-04
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
hm... and some parts are in german... heh, i use WEU - therefore my triggers appear englisch not german
- Asgard_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
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
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
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
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_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
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
But that's not the difficults thing in the world, but for some maps this function is not nessecary (like dotd)
- MoonstormSG
- Posts : 28
Réputation : 0
Regist Date : 2006-12-07
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_DLTG
- Posts : 1653
Réputation : 3
Regist Date : 2006-02-04
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.
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.
- MoonstormSG
- Posts : 28
Réputation : 0
Regist Date : 2006-12-07
Re: Ammo System
Mon 19 Feb 2007, 16:10
how do i copy and paste the trigger?
- Sunny_DLTG
- Posts : 1653
Réputation : 3
Regist Date : 2006-02-04
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?
dont you find one of the actions?
- MoonstormSG
- Posts : 28
Réputation : 0
Regist Date : 2006-12-07
Re: Ammo System
Mon 19 Feb 2007, 16:44
((Owner of (Attacking unit)) Current Gold) Equal to 0
thats the one i cant find
thats the one i cant find
- Asgard_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
Re: Ammo System
Mon 19 Feb 2007, 16:50
I did the trigger on a map where you can copy everything
Ammo System
Ammo System
- MoonstormSG
- Posts : 28
Réputation : 0
Regist Date : 2006-12-07
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
Merged: thanks a lot again if i were a rich guy i woud give you a million dollars
- Asgard_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
Re: Ammo System
Mon 19 Feb 2007, 17:16
copy the reload ability and the triggers (Right-Click and copy)
- Sunny_DLTG
- Posts : 1653
Réputation : 3
Regist Date : 2006-02-04
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
- Asgard_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
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_DLTG
- Posts : 1653
Réputation : 3
Regist Date : 2006-02-04
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
1) open one map
2) open another map (File/Open Map) without closing the first one of course
- Asgard_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
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_DLTG
- Posts : 1653
Réputation : 3
Regist Date : 2006-02-04
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!
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_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
Re: Ammo System
Tue 20 Feb 2007, 01:07
mhh will try it later but now i go to bed xD
- MoonstormSG
- Posts : 28
Réputation : 0
Regist Date : 2006-12-07
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_RagnaCOL
- Posts : 750
Réputation : 7
Regist Date : 2006-01-20
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
Permissions in this forum:
You cannot reply to topics in this forum
|
|