What is the triggers that make a villager transform to werew

This is a forum where you can ask our code monkeys for assistance. Questions on technical help belong here.
Liotyz
Posts: 2
Joined: Wed Nov 28, 2012 12:00 am

What is the triggers that make a villager transform to werew

Postby Liotyz » Fri Nov 30, 2012 1:05 pm

Help please, I want to create a map like Werewolf Transylvania and Wilderness Survival, but I want some triggers that make a villager transform to other model like werewolf randomly, can tell me the triggers? Please?
MetaDeath
Posts: 2
Joined: Fri Nov 30, 2012 12:00 am

What is the triggers that make a villager transform to werew

Postby MetaDeath » Fri Nov 30, 2012 9:31 pm

Hello friend! :D

The function is like this:

Code: Select all

 Actions
    Save the unit you are replacing.

    Set Your_Unit = Your_Unit

    Unit - Replace (Your_Unit) with a Werewolf using The old unit's relative life and mana

    Save the werewolf so you can replace it with a human on day break.

Set Your_Werewolf = (Last replaced unit)


BTW, with the Set Your_Werewolf variable idk if it's Last replaced unit or last created unit, cause I never tried this.
Last edited by MetaDeath on Fri Nov 30, 2012 9:32 pm, edited 1 time in total.
User avatar
maddeem
Posts: 67
Joined: Wed May 23, 2012 12:00 am

Re: What is the triggers that make a villager transform to w

Postby maddeem » Tue Apr 21, 2015 7:20 am

I am a necromancer of old posts.

Unlikely replace was used; more than likely is the use of the function ShowUnit(unit,boolean)
User avatar
Jesse James
Posts: 695
Joined: Sun Oct 11, 2009 12:00 am
Location: The Frozen Tundra of Siberia
Contact:

Re: What is the triggers that make a villager transform to w

Postby Jesse James » Fri Apr 24, 2015 2:26 am

Indeed. Replace is buggy. The werewolf is moved and hidden during the day, the villager is moved and hidden during the night.