HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger help

01-16-2003, 03:41 AM#1
aHaX
Im a n00b to the warcraft editor so... bear with me.
Well... im trying to fade in with white, so i set it on white texture mask and i get black, but if i put RGB on 100,100,100,(100 max) i get gray. I just want white!
Also i was wondering if you could scale the shadow too along with the model, because i got this unit running around with this giant shadow.
For cameras, im trying to do a 360 degree rotation around this city and its jerky. I used the smooth camera movement feature, but its not as good as i want it to be.
Yea.. I'm trying to learn all these things so i can make a movie project using the cinematic features and camera movements. It's about Hannibal, enemy of Rome, and his campaign. So if you can help smooth out whatever i got and give me advice or help PLZ email me [email protected]. I'll send u the map. THX
01-16-2003, 05:08 AM#2
knightking
Max value in RGB is 255.
01-16-2003, 06:54 AM#3
aHaX
Yea, i know, but in warcraft it is set at 100 max. I dont know why. If u type in 255 it doesnt let u click ok.
01-17-2003, 12:29 AM#4
aHaX
oops... i guess i posted it in the wrong section of the forum. sorry
I have another problem.... in game when my camera goes around.. there are is a black line. It is because of my graphics card or what? plz help

*bump*

o yea... im using normal editor... i dont really know how to use the hacked ones.
01-17-2003, 01:16 AM#5
pigchow777
u didnt post in the wrong forum this is to help u with triggers and all sorts of map editing help
01-17-2003, 03:57 AM#6
aHaX
It was in the wrong section, but it got moved.

On other matters... someone please help me!! I havent got a single useful advice!!

My camera movements are so jerky and i dont think smooth camera factor works (or even if im using it right). I'll send the map to anyone who can fix it for me!

Um.... maybe its the name of the thread?? If no one posts any useful information, I'll need to start a thread with a better title.
Then the admins can delete this one.
01-17-2003, 04:16 AM#7
Guest
Post the map so we can see it/fix it
01-17-2003, 06:14 AM#8
aHaX
Heres the map... originally it actually looked like spain, italy and carthage, but since i needed it to be more practical, i added more terrain. Im new so the triggers are horrible!!! I had to learn everything by just clicking around and by looking at other maps.
Please help me. :D
01-17-2003, 01:56 PM#9
Ari
Hmmm, haven't downloaded the map yet (I'm at school) so I can't explain the grey filter. I can tell you that the RGB values are in percents, not absolutes, when 100 is the max, so that's not the problem. I've created a white filter, though, so I can guarantee that it's possible. Worst comes to worst, in this enlightened era, you can create your own custom filter which is white, and use that. That shouldn't be neccesary though. I'll check the file when I get home tonight, if somebody hasn't beaten me to it.

For shadows, it turns out that the shadow is a part of the unit that cannot be edited on the fly, nor (I believe) can it be altered in multiplayer games. The workaround is to base a given custo unit off of a unit with the desired shadow size. So use a knight or bear as your base model for large units, say, and a footman for smaller units. Btw, use a wisp as your base unit when you want *no* shadow on your unit.

I've had problems with 360 camera panning as well. My crude solution was to break the panning into 3 120 degree segments, and play with my "wait" commands until it was almost smooth (hint, you wait a tiny bit less than the time needed to do the segment). It hasn't really worked with my desired fast rotation speed, but with a slower, more cinematic pan, you might be ok with that.
01-18-2003, 05:52 AM#10
aHaX
Thanks! Ok.. i guess i have to redo the camera pan again, but tell me what you think of mine. Also please get back to me on the white fade filter thing. Btw. i was thinking of using a custom fade, but if i can just get white it'll save alot more time.
01-18-2003, 06:42 PM#11
CBWhiz
ah yes 360 rotate was fun

i did it in jass so much easier, cause you need a loop unlise you want to write 4289624 (guestimated) ;) actions


btw, the getlocalplayer = everybody
Code:
function Trig_Rotate_Actions takes nothing returns nothing

local real WaitTime
local real AngleSkip

local integer i
local integer j

set WaitTime = 4.00
set AngleSkip = 60.00

        call SetCameraFieldForPlayer( GetLocalPlayer(), CAMERA_FIELD_ROTATION, 0.00, 0.00 )

        set i = 1
        set j = 360 / R2I(AngleSkip)

        loop
            exitwhen i > j

            call SetCameraFieldForPlayer( GetLocalPlayer(), CAMERA_FIELD_ROTATION, ( I2R(i) * AngleSkip ), WaitTime )
            call TriggerSleepAction( (WaitTime - .1) )

            set i = i + 1
        endloop

endfunction

//===========================================================================
function InitTrig_Camera_Rotate_360 takes nothing returns nothing
    set gg_trg_Camera_Rotate_360 = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Camera_Rotate_360, function Trig_Rotate_Actions )
endfunction
01-19-2003, 08:14 AM#12
aHaX
Heh... 360 would be fun if i can get it to work well. What is jass and i should use that code in it? Keep in mind im new, so please fill me in on these things. Start with the basics so i can understand what it means. :ggani:
01-20-2003, 05:27 AM#13
aHaX
Heres an update on my map, plz check it out and give me some pointers. The original map looks exactly like europe, but to make it more practical I expanded and remapped alot. If you would like to make my original map into a europe map, pm me. Don't forget to give me credit.

Ps. The map is mostly spain, france, italy, and a bit of africa.