Started by Blizzard, January 09, 2008, 08:21:56 am
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.
Quote from: game_guy on August 20, 2011, 11:11:54 amJust turn a self switch on o a new page that doesn't have a graphic. Thats how.
Quote from: LivingstoneIPresume on August 12, 2011, 02:13:25 pmI'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 endendAnd this one, which sets @Actor_Alignment to 9 until the command is run. unless @Group_Switched == 1 @Actor_Alignment = 9 endI'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>... endThis 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
class AlignmentSet def initialize(alignment) @Group_Switched = 1 @Actor_Alignment = alignment endend
unless @Group_Switched == 1 @Actor_Alignment = 9 end
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