Temporarily disable EXP from enemies

Ina00

Veteran
Veteran
Joined
Oct 10, 2020
Messages
78
Reaction score
2
First Language
Italian
Primarily Uses
RMVXA
I want to make a function called "Safe mode". You can turn it on wherever you want in emergency situations. I want to make this mode to:
- make the party immortal (already did, with status)
- disable (until the switch is on) gained exp and gold from enemies.

Can you help me to do the second part?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,756
Reaction score
7,862
First Language
German
Primarily Uses
RMMV
the exp is easy - just look at the death state, that also reduces exp gain to zero.

gold drop to zero needs either a script, or you'll have to get tricky with drops by setting the gold on all enemies to zero and add the gold later indirectly.
 

Sparky89

Game Designer
Veteran
Joined
Dec 18, 2019
Messages
246
Reaction score
108
First Language
English
Primarily Uses
RMMV
Can you not just make a copy of that monster and put EXP and GOLD to 0 ? or am i reading your question incorrectly?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,799
Reaction score
615
First Language
English
Primarily Uses
RMVXA
Something like this?
Ruby:
module BattleManager
  def self.process_victory
    play_battle_end_me
    replay_bgm_and_bgs
    $game_message.add(sprintf(Vocab::Victory, $game_party.name))
    if $game_switches[1] == true
      display_exp
      gain_gold
      gain_drop_items
      gain_exp
    end
    wait_for_message
    SceneManager.return
    battle_end(0)
    return true
  end
end
Not sure if the check against game_switches will work inside BattleManager
 
Last edited:

Ina00

Veteran
Veteran
Joined
Oct 10, 2020
Messages
78
Reaction score
2
First Language
Italian
Primarily Uses
RMVXA
Something like this?
Ruby:
module BattleManager
  def self.process_victory
    play_battle_end_me
    replay_bgm_and_bgs
    $game_message.add(sprintf(Vocab::Victory, $game_party.name))
    if $game_switches[1] == true
      display_exp
      gain_gold
      gain_drop_items
      gain_exp
    end
    SceneManager.return
    battle_end(0)
    return true
  end
end
Not sure if the check against game_switches will work inside BattleManager

I tried this code and nothing changed.
What you exactly did? If game switch is on gain gold, exp, items and else?
I think the solution is if game switch is if switch is on do not gain gold.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,799
Reaction score
615
First Language
English
Primarily Uses
RMVXA
Do you have switch 1 on? or did you change the number?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,799
Reaction score
615
First Language
English
Primarily Uses
RMVXA
So it is written in a way that if switch 72 is on it will process normally. if switch 72 is off it will not process what is inside the if statement.
I also just added a wait as it did not do that otherwise.
 

Ina00

Veteran
Veteran
Joined
Oct 10, 2020
Messages
78
Reaction score
2
First Language
Italian
Primarily Uses
RMVXA
So it is written in a way that if switch 72 is on it will process normally. if switch 72 is off it will not process what is inside the if statement.
I also just added a wait as it did not do that otherwise.
Oh ok i'll retry
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Who would think putting a power button on a side of a laptop is a good thing? You want to move the laptop and you suddenly press the button.
The second draft of my script is almost done, and I don't think I'm going to write a third draft. I'll make changes to dialogue here and there, but I'm happy with the series of events the way they are.
How you feel about font and dialogue box changing for every main character while the minor cast and regular npc get their own styles? Too much?
Just found an obviously custom effect (i.e. edited by me) in my resources>sounds folder called "rip jaw off". Dear Lord what is wrong with me as a person that at some point I needed a sound *specifically* for THAT??
(...rhetorical question.)

Forum statistics

Threads
107,526
Messages
1,030,266
Members
139,651
Latest member
Molerat05
Top