I'm working on scripting in a few modifications to the script, but I'm running into a few problems.
Firstly I'm setting up a feature to change the actor's alignment. I know that changing a constant is bad, so I set up a new variable to refer to.
I've created two parts:
This one, which allows the use of the command
AlignmentSet.new(alignment).
class AlignmentSet
def initialize(alignment)
@Group_Switched = 1
@Actor_Alignment = alignment
end
end
And this one, which sets @Actor_Alignment to 9 until the command is run.
unless @Group_Switched == 1
@Actor_Alignment = 9
end
I've replaced all instances of ACTOR_GROUP, but for some reason it doesn't work.

Secondly, I'm working on a modification which lets one event function as both an event and a battler, depending on whether their is an enemy nearby.
I used this code to disable replacing an event when the group was 6 or 8, my two npc groups. I will eventually add something to run it anyway if there is an enemy on the map.
if group != 6 or 8
# set move flag if moving disabled
move = true if event.name.clone.gsub!('\\move') {''}
...<Unnesesary parts ommitted>...
# replace the real event with the new enemy
$game_map.events[event_id] = Map_Enemy.new($game_map.map_id, event,
id, group, attr, move, immortal, full_passable, custom, delay,
view, hear)
...<Unnesesary parts ommitted>...
end
This doesn't accomplish anything...
I realize, as I am a new scripter, that I've probably made some stupid mistake or forgotten to do something important, but can anyone give me any insight as to what it is?

Thanks,
Livingstone