Difficult question! Need pros help!

  • Thread starter Thread starter InneedofAid
  • Start date Start date
I

InneedofAid

Guest
I am working on a mod where a bunch of humans are allied and then they get turned evil when they are killed by the 1 bad guy... So I need to know how to go about making them change to be allies with the enemy, and allies with the enemies allies that have already been turned... Any idea how to do this?? they are players 1-11 (humans) and he is player 12(evil guy). I need the enemies to all have shared vision when they are turned
 
Hope this helps :)

Theres an item (or ablility) that converts units into little dead fighters when you kill then so you could just have that but make the life time of the dead units like 999999999999999 (you need WEU for that)


Hope I helped :D



EDIT: When it converts them they become the unit with the item's units
 
I was really wondering if I could do this with triggers somehow.. I dont quite understand how the player group - all player to allies of ... works, If I understand it correctly it does not actually make them allies with shared vision? I would have to use the Player- make player an allie of ... each time?
 
u would have to do this trigger.

Event-unit dies
condition- ur rule....
action-unit group-change owner of triggering unit to force X X is the force of evil guy :D
 
ya there's

Event
<Your Event>
Cond
None
Actions
If all cond are true than action.
Cond.
(Unit Triggering belongs to an enemie of PlayerX)
than Action
Unit - Change OwnerShip of triggering unit to Player() owner

i will post later the right code beacuse i dont have the w3 instaled here
 
I dont really want to make the unit change ownership(so that the evil guy is controlling their char), i just want its alliance to change, but if i do set alliance i have to already know who is turned which isnt possible (except for making the player allied with the main evil guy, but thats it)
 
SilverHawk said:
Use "Player - Set alliance".

This is right.
Just to show how to do it:
Two player group variables:
GodSide
BadSide

In the begining of your map add all players to the right player group

Then this trigger
Code:
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Triggering unit)) is in GodSide) Equal to True
    Actions
        Player Group - Pick every player in BadSide and do (Actions)
            Loop - Actions
                Player - Make (Owner of (Triggering unit)) treat (Picked player) as an Ally with shared vision
                Player - Make (Picked player) treat (Owner of (Triggering unit)) as an Ally with shared vision
        Player Group - Pick every player in GodSide and do (Actions)
            Loop - Actions
                Player - Make (Owner of (Triggering unit)) treat (Picked player) as an Enemy
                Player - Make (Picked player) treat (Owner of (Triggering unit)) as an Enemy
        Player Group - Remove (Owner of (Triggering unit)) from GodSide
        Player Group - Add (Owner of (Triggering unit)) to BadSide

I am unsure of your event and additional conditions but that is easy to change/add
 
How do I make this condition.. I cannot seem to find it: ((Owner of (Triggering unit)) is in GodSide) Equal to True
 
ok i do this and put each person in one of the two groups at initialization: Player Group - Add Player 1 (Red) to HumanGroup
then the last player in a diff group

Then I put in what you wrote but with my variables but it doesnt seem to be changing the alliances at all
 
I just played with where i put my player group adding and now its working... Thanks a ton!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top