Warcraft III resources & community, 2003–2006 · archived

New to map-making and needing some help

48 posts
#16
ks13for now all i can do i make 18 triggers like this one for each of 18 buildings...but i wondered if i couldn't alter them to be able to have only 2 triggers, or at least have only one of the 2 dynamic


Well i think you dont need the timer. You may try this instead:

EVENTS:

Unit - A unit comes within range of <building nr1>
Unit - A unit comes within range of <building nr2>
Unit - A unit comes within range of <building nr3>
Unit - A unit comes within range of <building nr4>
and so on...

CONDITIONS:

ACTIONS:

Message: you have xx.xx seconds before owner changed
Wait xx.xx seconds

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Is (Triggering unit) near <build1> and withing a range of xxx.xx) Equal to True
    Then - Actions
        Message: Ownership changed
        Unit - Change ownership of <build1> to (Owner of (Triggering unit)) and Change color
    Else - Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Is (Triggering unit) near <build2> and withing a range of xxx.xx) Equal to True
    Then - Actions
        Message: Ownership changed
        Unit - Change ownership of <build2> to (Owner of (Triggering unit)) and Change color
    Else - Actions


and so on ....

NOTE: the the if-condition is a boolean.

hm... you have to try that, i didnt test it.

Well, and if that doesnt work just finish one trigger for one building and then copy the whole trigger and just exchange the different buildings. :wink:
#17
errr....hat would work fine if all i wanted is to check at the end of timer if there is an ennemy hero in the range....but (i think this is what you forgot) i want to be sure the ennemy hero doen't leave the area, that is why i made a separate trigger checking every second.
#18
well... ok then i guess your questions are answered :D , or not?
#19
hmmm....actually, i reavaluated the problem counting in your suggestion and came to a conclusion that with a few expendable vars i could make the triggers pretty dynamic. but i saw another problem that i'd have whicever solution i came up with : when the trigger detects that there is no ennemy hero in range (died or run away), how do i stop the timer, or rather, how do i reset it? because i need to be able to use it again on another capture try.
#20
hm.. maybe you can use instead of a timer an integer variable.
so when within range u set the variable (lets call it X here):

event periodic event every <1sec>

if     within range
then   set x to x - 1
       message x
else   set x to <30 or what u have>
       message x set to 30 again


then you would be able to make in other trigger

if x = 0
then change ownership ... etc

maybe this works :?:
#21
o_o

i...actually....haven't thought about that one....and i'm studying programming...what a joke :?

that might be just what i was needing, thank for the help.

i have a question : the parameters for gold earning when a unit is killed are the 3 stats called something like bonus gold, bonus gold per dice and another one right? so when i set all 3 to 0 the player won't earn anything when killing that unit right? (this is for my gold/wood earning system)
#22
ks13i have a question : the parameters for gold earning when a unit is killed are the 3 stats called something like bonus gold, bonus gold per dice and another one right? so when i set all 3 to 0 the player won't earn anything when killing that unit right? (this is for my gold/wood earning system)


stats-bounty awarded lets you earn gold when kill
stats-lumber bounty awarded is lumber (of course :wink: )
point value gives experience as far as i know

similar to that u can use fuction player flag:

Player - Turn Gives bounty Off for <player>

if you want <player> to earn nothing.
#23
thank fo the explanation :)
err....isn't there a var so i can change the experience needed between 2 levels? or i only have the experience earned to go with?
#24
sry i cant help you with your last question... :?
#25
no worries :)

hmmm...i think i'll take a rest today before continuing the triggering tomorrow.
btw...i see you finished the terrain first, are you always doing the terrain first? i mean, i know that usually residen evil-like maps have a unique terrains but i was wondering how others proceed when making maps.

edit : i only made 2 maps up till today, but i always used the same proceeding :

- basic terrain
- almost all units (all but heroes and towers)
- almost all triggers
- heroes and their triggers
- towers and defensive structures
- remodeling terrain
#26
well, there is no special order i build up this map. Its my very first map... so i just started the idea did some terrain, units, and so on... and so i completed it. added here and there something.

hehe might be not the perfect efficience, but i just followed my 'inspiration' :)
#27
hmmm, yea

i dunno where but i saw something like a manual for "how to procced when making a map", i can't remember where though....anyway, since i couldn't get the ideas for the map out of my head i got on photoshop trying to do the background image for the loading screen and the preview image....errr, the background is 60% done and the preview is yet to be started....but it'll be done by tomorrow i think. i'll diplay the images here when done because i think the mapp will wait a bit longer.
#28
Ok, here are the Minimap and loading screen background :

http://ks13.ifrance.com/bote_3.jpg



http://ks13.ifrance.com/Birth_of_the_eternals_bg.jpg


I wanted an original loading screen for my map, and since the action is happening in a forest map i used a photo and edited it a bit. The minimap is a re-edit of the loading screen. The writing is....well something i created. Sinco nothing is impossible in this world i won't go as far as saying you dun have a chance of seeing this kind of writing anywhere in the world, but if you do, it's purely coincidental. Oh by the way, these writings do mean something :)

edit : if anyone doubts this was a photo before i edited it i can post it, just ask.

edit 2 : when i re-read the post it seems to me as if i'm boasting about what i've done....actually i read the post about posting material, not using anime images, manga images, or others stuff of kind....i said that only in case someone thought i copied the image from sowhere or something like that
#29
oh very nice idea to reedit a given photo... looks awesome
Hope you dont complain if i would try that on my resevil load screen too. :)

btw what is the filesize of your pic? because my screen has a huge filesize.... i probably remove it from my map.

well.. and your own cryptic font looks cool. it really fits to a mystical forest ^^. hm.. not yet got the meaning hehe but i will...
#30
thanks for the compliment :lol:

i won't mind if you use the idea, it's not like i own it :o and the size of the images are 40k for the minimap and 550k for the background. the minimap and the background are the indicating sizes 128x128 for the minimap and 512x512 for the loading screen, i didn't try to croop a 1024x768 (or higher) image because i didn't want to overload the map needlessly.
and, about the cryptic font, it was written by me and scanned, then i re-edited it a bit, so you won't find it on a font-downloading site :roll: