wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Systems
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 06-22-2008, 08:31 AM   #31
waaaks
User
 
waaaks's Avatar
 
Join Date: Apr 2007
Posts: 356

waaaks is on a distinguished road (12)

Default

wtf! no function for making creeps non aggressive? the last system has that function....making the creeps in camp to make it more un-aggressive
__________________
waaaks is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 06-22-2008, 11:23 AM   #32
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

Quote:
Originally Posted by waaks
wtf! no function for making creeps non aggressive? the last system has that function....making the creeps in camp to make it more un-aggressive

Well, you don't need a function. If your creeps have campaign acqusition range when you do CRS_SetupRegion, they will respawn will campaign acqusition range (if you are using 2.3, that is :)

Trigger:
(Unit - Set (Picked unit) acquisition range to 200.00)

Also, you can manipulate the group directly if you prefer that (check trigger: Advanced Usage)

Trigger:
Actions
Custom script: local crsGroup g
Set tempRect = Wolves North <gen>
Custom script: set g=CRS_SetupRegion(udg_tempRect)
Custom script: set g.longAcquireRange=false
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...

Last edited by Themerion : 06-22-2008 at 11:25 AM.
Themerion is offline   Reply With Quote
Old 06-23-2008, 12:09 PM   #33
waaaks
User
 
waaaks's Avatar
 
Join Date: Apr 2007
Posts: 356

waaaks is on a distinguished road (12)

Default

i used list group and already added lots of creeps setup in my map, how about doing this in map init?

Trigger:
Initialization
Collapse Events
Map initialization
Conditions
Collapse Actions
Custom script: set bj_wantDestroyGroup = true
Collapse Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Actions)
Collapse Loop - Actions
Unit - Set (Picked unit) acquisition range to 200.00

and yeah i already set the creeps' target acquisition range to camp (double click, and checked "camp"), but still it doesnt work

i havent tested the trigger yet, ill try it now

EDIT: tested the trigger, and doesnt work

EDIT2: i created an easier way, wtf! unit enters entire map, triggering unit owned by neutral hostile, set acquisition range to 200, again wtf! and it works, much simplier....lol

Trigger:
AcRange
Collapse Events
Unit - A unit enters (Entire map)
Collapse Conditions
(Owner of (Triggering unit)) Equal to (==) Neutral Hostile
Collapse Actions
Unit - Set (Triggering unit) acquisition range to 200.00

thnx btw
__________________

Last edited by waaaks : 06-23-2008 at 12:15 PM.
waaaks is offline   Reply With Quote
Old 06-23-2008, 06:37 PM   #34
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

First of all, just to be sure, you are using the latest version (2.3) ?

Quote:
Originally Posted by waaks
i used list group and already added lots of creeps setup in my map, how about doing this in map init?

Trigger:
Custom script: set bj_wantDestroyGroup = true
Collapse Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Actions)
Collapse Loop - Actions
Unit - Set (Picked unit) acquisition range to 200.00

and yeah i already set the creeps' target acquisition range to camp (double click, and checked "camp"), but still it doesnt work

Quote:
Originally Posted by Changelog
- Made the system automatically detect and remember campaign acqusition range for normal groups.
ListGroups won't remember what acqusition range the units had. Neither you trigger nor setting them to blue will work. Perhaps I should mention this more...
(This is because acqusition range is group specific, not setup specific. A ListGroup can have multiple setups, thus it cannot tell which acqusition range to use)

Quote:
Originally Posted by waaks
EDIT: tested the trigger, and doesnt work

The seconds trigger (where you get the group and manually set the boolean-variable) really should work though... You did like this?

Trigger:
Custom Script: local crsGroup cg
Set tempRect = List Group <gen>
Custom script: set cg = CRS_CreateListGroup(udg_tempRect,false)
Custom script: set cg.longAcquireRange=false

Quote:
Originally Posted by waaks
i created an easier way, wtf! unit enters entire map, triggering unit owned by neutral hostile, set acquisition range to 200, again wtf! and it works, much simplier....lol

Will work, so long as you want all creeps to have campaign acqusition range.

It would be more efficient to setup the Creep Respawn System properly, but it wouldn't matter since the performance loss is extremely small.


EDIT:

Perhaps I should add one of the following options for setting campaign range...?

Collapse Alternative 1:
set CRS_wantCampaignRange=true
call CreateListGroup(udg_rect)

Collapse Alternative 2:
// 'true' as in want campaign range
call CreateListGroup(udg_rect,true)

Collapse Alternative 3:
call CreateListGroup(udg_rect)
set CRS_LastCreatedGroup.longAcquireRange=true

Collapse Alternative 4:
call CreateListGroup(udg_rect)
call CRS_SetLastCreatedGroupCampaignRange()
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...

Last edited by Themerion : 06-23-2008 at 07:02 PM.
Themerion is offline   Reply With Quote
Old 06-25-2008, 11:39 AM   #35
waaaks
User
 
waaaks's Avatar
 
Join Date: Apr 2007
Posts: 356

waaaks is on a distinguished road (12)

Default

wtf! i thought i have the latest version, im still using v2.2 instead of 2.3, sorry, so that means if the creeps i set has the camp ac range already, it will automatically remember the ac range, right?

thanks, sorry for my dumbness
__________________
waaaks is offline   Reply With Quote
Old 06-25-2008, 03:06 PM   #36
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

Quote:
Originally Posted by waaks
wtf! i thought i have the latest version, im still using v2.2 instead of 2.3, sorry, so that means if the creeps i set has the camp ac range already, it will automatically remember the ac range, right?

Yeah, if you're using normal groups and not list groups, they will remember if they were set to campaign or not. For list-groups you still need to do like this:
Trigger:
Custom Script: local crsGroup cg
Set tempRect = List Group <gen>
Custom script: set cg = CRS_CreateListGroup(udg_tempRect,false)
Custom script: set cg.longAcquireRange=false

For the next version, I will probably add this to make things easier...
Trigger:
Custom Script: call CreateListGroup(udg_rect)
Custom Script: set CRS_LastCreatedGroup.longAcquireRange=false
That would also allow for setting custom respawn time in a similar way. Does that sound like a good idea?

Quote:
Originally Posted by waaks
thanks, sorry for my dumbness

Hey, no problems. I should have added the campaign ranges from the start of v2.0, so...
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...

Last edited by Themerion : 06-25-2008 at 03:08 PM.
Themerion is offline   Reply With Quote
Old 06-26-2008, 10:17 AM   #37
waaaks
User
 
waaaks's Avatar
 
Join Date: Apr 2007
Posts: 356

waaaks is on a distinguished road (12)

Default

oh ok, that means i dont need to update the system now, because im not using normal groups, im using list groups

thanks again
__________________
waaaks is offline   Reply With Quote
Old 06-28-2008, 03:56 PM   #38
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

Version 2.4 is now out!

I've returned to the very efficient way of maintaining creeps. If anybody gets double spawns please report this.
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...

Last edited by Themerion : 06-28-2008 at 03:59 PM.
Themerion is offline   Reply With Quote
Old 06-29-2008, 10:39 AM   #39
waaaks
User
 
waaaks's Avatar
 
Join Date: Apr 2007
Posts: 356

waaaks is on a distinguished road (12)

Default

nice
__________________
waaaks is offline   Reply With Quote
Old 09-26-2009, 12:05 AM   #40
Callahan
Bullseye
 
Callahan's Avatar
 
Join Date: Jan 2006
Posts: 977

Submissions (72)

Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)

Default

I use this system in my map and it doesn't support v1.24...
__________________
Current project:
-Singleplayer RPG:World of Genesia
-Heroes of Genesia

_________
I support every RPG map maker.
_______
OMG!My signature doesn't countains subliminal messages anymore!
Callahan is offline   Reply With Quote
Old 11-22-2009, 02:01 PM   #41
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

Quote:
Originally Posted by Callahan
I use this system in my map and it doesn't support v1.24...

The system itself have no problems with 1.24, but all the attachment system it used have stopped working. To make matters worse, none of the systems has been updated for 1.24.

The map will still work with customValues/userData though, so if you're not using that, you can just use that plugin instead.
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...

Last edited by Themerion : 11-22-2009 at 02:28 PM.
Themerion is offline   Reply With Quote
Old 11-22-2009, 02:25 PM   #42
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

DUI and stuff like that are all deprecated. Either use AutoIndex if you're hooking to units or Table otherwise.
__________________
Rising_Dusk is offline   Reply With Quote
Old 11-23-2009, 04:50 PM   #43
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

AutoIndex gives me compiling errors (caused by a text-macro containing 'optional', unless my memory fails me). I have jassNewGen5d.

AutoIndex it is :)
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...

Last edited by Themerion : 01-27-2010 at 10:36 AM.
Themerion is offline   Reply With Quote
Old 04-10-2010, 11:35 AM   #44
DanThanh
User
 
DanThanh's Avatar
 
Join Date: Apr 2009
Posts: 137

Submissions (1)

DanThanh has little to show at this moment (7)

Send a message via Yahoo to DanThanh
Default

Hi themerion, Is there any function to spawn stronger creeps after a period of time?
__________________
DanThanh is offline   Reply With Quote
Old 04-23-2010, 09:24 PM   #45
lucifekit
User
 
Join Date: Nov 2008
Posts: 18

lucifekit has little to show at this moment (2)

Default

After a time,creep don't respawn again.
lucifekit is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 08:16 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services