HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Race Editing

10-14-2002, 10:19 PM#1
Guest
i realize that this may be a moot question now that 1.03 has screwed everything up, but anyways: ive been working on creating an additional race based on the night elves that uses the corrupted trees as their base buildings. one of the main points is that once the game starts you can use either the original elves or the new ones. the question is if i can put some sort of OR statement into the upgrade requirements so that both races can upgrade. for example: strength of the moon requires either tree of ages or corrupted tree of ages. any suggestions would be appreciated
10-15-2002, 08:29 AM#2
Guest
in case anyone is interested, these are the triggers i used to switch races:

Event:Player 1 selects a unit.
Condition:race of triggering player is night elf
actions:if triggering unit is tree of life, then replace with corrupted tree of life, else close this trigger.
if triggering unit is tree of life then create 5 corrupted wisps at starting location.
if triggering unit is tree of life then pick every unit of type wisp owned by player 1 and kill.

repeat for each player. then to switch, one clicks on the tree when they start playing. if they click on something else, they stay night elves. not very elegant, but ripping apart the .mpq wasnt getting anywhere
10-16-2002, 11:08 PM#3
Guest
Plz, relese a map of this trigger caus i cant get it to work.

-----------------------------------------------------
:lch: me and :foot: you and :dH: me so :D happy together :infth:
10-17-2002, 12:53 AM#4
Guest
events:(player selection event)[player 1 red selects a unit]

conditions:(race comparison)[race of triggering player equal to night elf]

actions:
if triggering unit is tree of life, then replace with corrupted tree of life, else close this trigger.
action type if/then/else
if(unit-type comparison)[unit-type of triggering unit equals tree of life]
then do(unit-replace)[replace triggering unit with a corrupted tree of life using old units relative health and mana]
else do(trigger-turn off)[turn off this trigger]

if(unit-type comparison)[unit-type of triggering unit equals tree of life]
then do(unit-create unit facing point)[create 5 corrupted wisps at(player-player start location) triggering players start location facing triggering players start location]
else do nothing

if(unit-type comparison)[unit-type of triggering unit equals tree of life]
then do(unit group-pick every unit in unit group and do action)[pick every unit in units owned by triggering player of type wisp] and do (unit-kill)[kill picked unit]
else do nothing

provided youve already made a corrupted wisp or whatever youre using in the unit editor it should show up on the menus for selecting a unit type. and to clarify, there should be a separate trigger for each player, not just a separate event, otherwise only the first player will switch races. hope that helped.
10-18-2002, 06:23 AM#5
Electromancer
Im not sure you can change that of right now, because of the patch. What i would do is use the regular tree of life, and use the corrupted things like corrupted moon pool. That would work, and i dont think you would have issues doing that. Maybe some day blizz will make a upgrade editor, with an and/or function. That would be nice.