Page 1 of 1

Desert Survival v1.2

Posted: Thu Jun 11, 2009 2:17 pm
by samtre
Hey, remember me? the idiotic guy who made a very buggy slide-kill map....

Ok, this map is based on Wilderness Survival, but instead winter, is a desert.
Survive in the desert and win by killing the other survivors either by solo or team....
I made some recipes but i don't have any idea anymore i could add.... so here's the map!
I need some help on optimizing the "2 of the same items" combination trigger.

v1.1
Added:
Buildings - Crafting Tent, Smelting House, Desert Bunker
Items - Small Water Bottle (Refill), Water Bottle (Refill), Small Barrel, Medium Barrel, Big Barrel, Leather

v1.2
Added:
Random drops at 24.00 am/pm

About to add:

Crafting Tent - Craft better items
Smelting House - Melt rocks into metal, crystal into sulphur.
Desert Bunker - Attack it to change owner, can hide inside from enemy units.

Re: Desert Survival

Posted: Thu Jun 11, 2009 2:27 pm
by 3ICE
Nice map!

But this is very bad practice:
Image
Please use a trigger instead. (Event: Any tree dies. Action create a stick.)

EDIT: I uploaded the JASS code behind your trees so you can see for yourself how much spam they create.
(Your computer might not be able to handle that many characters though.)
EveryTree.zip
(35.03 KiB) Downloaded 621 times
EDIT2: The extension .j stands for JASS file, you can open it with notepad.

Re: Desert Survival

Posted: Thu Jun 11, 2009 10:18 pm
by samtre
I did try to make a trigger, as there are 2 Events on Destructables, I chosed the 2nd one
it's kinda like this:
Event - [A destructable dies in [Playable Map Area]]
Condition - [Destuctable Type of [Dying Destructable]] Equals [Barrens Tree Wall]
Actions - Create 1 [Stick] at [Position of Dying Destructable]

But then, it does not work
Because i found that ->
Event - [A destructable dies in [Playable Map Area]]
Only handles the first 64 destructables placed on the map

So, I had no choice but to do that....

Re: Desert Survival

Posted: Thu Jun 11, 2009 11:45 pm
by 3ICE
Wow, that is a very serious limitation.

However I managed to get my forest to drop sticks properly.
Testing was perfect: I cut down 500 trees randomly (with triggers of course), and then a call to CountSticks() returned 500.

Here is how to do it:
Trees drop Sticks by 3ICE.w3x
(39.84 KiB) Downloaded 704 times

Re: Desert Survival

Posted: Thu Jun 11, 2009 11:47 pm
by Guest
Props to whoever can find the typo!

Re: Desert Survival

Posted: Sat Jun 13, 2009 1:22 am
by samtre
Yep, it's me.... Des-tuc-able

Thanks 3Ice, now it works....anything else I could add as items into the map?

Re: Desert Survival v1.1

Posted: Sun Jun 14, 2009 6:26 am
by 3ICE
samtre wrote:Yep, it's me.... Des-tuc-able
Umm... What?

"Destructible"is the correct way of spelling it. Destucable is wrong on many levels.
Maybe it helps if you see it in a sentence: It can be destroyed, so it is destructible.