Experiance Rate Trigger?

JakeWC123

New Member
Reaction score
2
why wont this work? it doesnt show the text in the game.
(Game - Display to all players the Text)
Code:
Experiance Gain
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Set EXPGAIN = 70
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) slot status) Equal to Is playing
                    Then - Actions
                        Set EXPGAIN = ((EXPGAIN x (Player number of (Picked player))) / ((Player number of (Picked player)) - 1))
                        Game - Display to (All players) the text: ((String((Player number of (Picked player)))) + 's Are currently playing)
                        Wait 1.20 seconds
                        Cinematic - Clear the screen of text messages for (All players)
                        Game - Display to (All players) the text: (EXP Gain Percent to + ((String(EXPGAIN)) + %))
                    Else - Actions
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                Hero - Make (Picked player) Heroes gain (Real(EXPGAIN))% experience from future kills
 

Söder

New Member
Reaction score
1
i'm srry but i'm not good at reading other riggers fi they are to long :p but if u jsut want to set the xp rate on some units make them to variables and then set the xp to the variables....
 

Sim

Forum Administrator
Staff member
Reaction score
534
Never use waits inside Player group and Unit group loops.
 

JakeWC123

New Member
Reaction score
2
i did this and it still didn work
Code:
Experiance Gain
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Set EXPGAIN = 70
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) slot status) Equal to Is playing
                    Then - Actions
                        Set EXPGAIN = ((EXPGAIN x (Player number of (Picked player))) / ((Player number of (Picked player)) - 1))
                        Game - Display to (All players) the text: ((String((Player number of (Picked player)))) + 's Are currently playing)
                        Game - Display to (All players) the text: (EXP Gain Percent to + ((String(EXPGAIN)) + %))
                    Else - Actions
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                Hero - Make (Picked player) Heroes gain (Real(EXPGAIN))% experience from future kills
 

Sim

Forum Administrator
Staff member
Reaction score
534
Does it at least display a message?
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Are all players playing? Try one player at a time (So first go with Player Red) and make sure he/she is playing.

Also,
"Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Hero - Make (Picked player) Heroes gain (Real(EXPGAIN))% experience from future kills"
Shouldn't Picked Player be Picked Unit? or Owner of Picked Unit? I forgot >_<
 

Bjerrum

New Member
Reaction score
12
I think it's because all player slots needs to be used when you use:

Code:
Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) slot status) Equal to Is playing

I've would use

Code:
Actions
    Player Group - Pick every player in (All players matching (((Matching player) controller) Equal to User)) and do (Actions)
        Loop - Actions

Hope it works

Bjerrum
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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