Changing PlayerGroup?

Elmekior

New Member
Reaction score
1
I made this trigger for changing from a player group to another. But it does'nt completly remove the player from previous player group. Please help me solve the problem.

Freelancer
Events
Dialog - A dialog button is clicked for AllianceChange
Conditions
(Clicked dialog button) Equal to Freelancer
Actions
Player Group - Remove (Triggering player) from Anarchs
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Camarilla
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Garou
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Hunters
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Independant
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Sabbat
Wait 0.33 seconds
Player Group - Add (Triggering player) to Autarkis
 
Reaction score
456
Why do you need those waits between the functions? Try it without them, cause the trigger looks fine with me..
 

waaaks!

Zinctified
Reaction score
256
Code:
Freelancer
Events
Dialog - A dialog button is clicked for AllianceChange
Conditions
(Clicked dialog button) Equal to Freelancer
Actions
Player Group - Remove (Triggering player) from Anarchs
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Camarilla
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Garou
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Hunters
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Independant
Wait 0.33 seconds
Player Group - Remove (Triggering player) from Sabbat
Wait 0.33 seconds
Player Group - Add (Triggering player) to Autarkis

does Sabbat Autarkis...etc. are players?
if yes why did u used Triggering Player?
can u add a player to a player?
 

Elmekior

New Member
Reaction score
1
Those wait are just something I tried, with our without them does'nt change a thing.

All these are preestablished teams(group of players). So I need not destroy those for the sake of other players. I just need to remove the triggering player from any group he is already in and add him to autarkis(freelancer group)
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
yes u can and also remove them.
i dunno why u use this waits between them i don't see what's the point i suggest to remove them.

also can u tell me in what way did u check they haven't been removed?
 

Elmekior

New Member
Reaction score
1
Yes of course. I removed the wait time, It is just something I tried to fix the problem, but it did not do any good.

I have a rebirth trigger, where if the hero has an ankh of reincarnation he resurrects in is base. And what happened is that he was first move to his old base (old team) then to his new one. Weird. So it is how a came to the conclusion it was'nt completly removed. Here is part of the rebirth trigger I am talking about.

Rebirth
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Ankh of Reincarnation
Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Hero manipulating item)) is in Autarkis) Equal to True
Then - Actions
Wait 2.00 seconds
Set L37 = (Random point in Region 137 <gen>)
Unit - Move (Hero manipulating item) instantly to L37
Camera - Apply (Current camera) for (Owner of (Hero manipulating item)) over 0.00 seconds
Set L81 = (Position of (Hero manipulating item))
Camera - Pan camera for (Owner of (Hero manipulating item)) to L81 with height 400.00 above the terrain over 0.00 seconds
Game - Display to (All players controlled by a ((Owner of (Hero manipulating item)) controller) player) the text: Your Hero will revi...
Custom script: call RemoveLocation(udg_L37)
Custom script: call RemoveLocation(udg_L81)
Else - Actions
Do nothing

(BTW sorry I still did'nt figure how you attach trigger)
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
And what happened is that he was first move to his old base (old team) then to his new one. Weird.

Well, in that trigger, you do only revive him in region 037... So to me, it looks like he will be moved there? What is the other region he is moved to first? Show us that trigger too? Oh.. btw, why dont you just create 1 trigger, that makes all heroes upon death, revive at THAT region.. you sort each hero out.
Like this:
Code:
SortOut
    Events
        Unit - A unit enters SortOutHeroes <gen>
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        If (((Owner of (Triggering unit)) is in Sabbat) Equal to True) then do (Unit - Move (Triggering unit) instantly to (Center of SabbatSpawn <gen>)) else do (Do nothing)

And just add for the rest of the playergroups you got. Then when it dies/if it got ankh or not..Revive him in that region "SortOutHeroes"... I really dont understand your problem buut... hmm..hope this solves! :cool:
Cheerio
 

Elmekior

New Member
Reaction score
1
OK I will explain exactly how I made my map.

It is a vampire-werwolf-hunter map. Go download here, it might help you understand (btw I am working on a new version, I found a few bugs in this one)
http://world-editor-tutorials.thehelper.net/maps.php?view=458

So in the beginning depending on the faction you choose, your hero is moved to a specific base with a key for door. Upon death he is reborn in this base (I only put part the rebirth trigger in previous post). Upon choose his faction the player is put in a playergroup variable. Ex. Werewolfs go in Garou variable then alliances are made for this group.

Now, what I want to do is to be able to change again faction while plaing in-game so that let's say you want to become a werewolf friendly to vampires (wich is philosophicaly quite improbable) you can.

But the add player to player group (variable) works, thus also gaining all alliance properties of that group, but seemingly the remove from player group is not working.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
here's a better way to check:
Code:
Event
   Every 2.00 Seconds
Condition
Action
   If \Then \Else
       If - Condition 
           Anarchs Contains Player 1 (Red) Equal to True
       Then - Actions
           Display Text to All Players - "Anarchs"
      If \Then \Else
       If - Condition 
           Camarilla Contains Player 1 (Red) Equal to True
       Then - Actions
           Display Text to All Players - "Camarilla"
and so on......
so if it realy doesn't remove u would be seeing the name of the clan he is in displayed throught text.
Game - Display to (All players controlled by a ((Owner of (Hero manipulating item)) controller) player) the text: Your Hero will revi...
it leaks a player group and u can simply display it to the Owner of the hero without using this player group condition just look better.

(BTW sorry I still did'nt figure how you attach trigger)
to use code tags u simply pick the # or simply write
Code:
*Trigger here*[code] of course don't forget to add the "/" at the second one.
 

Elmekior

New Member
Reaction score
1
IF I clear the player group as a solution to completly remove previous group, will it definitly also clear other members ot this playergroup? (view previous post to understant what I am saying)
 

Tinki3

Special Member
Reaction score
418
>(BTW sorry I still did'nt figure how you attach trigger)

Right click on your trigger's title (the one above the Events, conds, and acts), and from there you can copy the whole thing.

I also noticed that you didn't wrap your triggers in the CODE type. Just highlight the desired text, and click the little '#' button, at the top of the menu.
 

Elmekior

New Member
Reaction score
1
Ok thanks Tinki3. I still need help solving that bug though.

Can the solution be custom scripting. If so can someone tell me what to do?
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
did u check if it was removed from the groups like i told u?

also that's not a bug u must have done something wrong.......
try showing us also the dialog trigger which u created i wanna see it....
 

Elmekior

New Member
Reaction score
1
Oh I read to fast, I tought you just did'nt get my problem. I will be sure to check that. And post all concerned triggers. Hey, hey.

Tested and it works! Indeed I had forgotten to change 2 conditions in the rebirth Trigger. Thanks Doom-Angel your checking trigger was quite useful.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top