- 132
- Posts
- 10
- Years
- New Brunswick
- Seen May 6, 2023
How can I use a variable instead of a switch for when an extra graphic appears on the region map?
This is what it looks like in PScreen_RegionMap:
[hidden[1] being what's referenced from the Settings section. It'd be nice if I could just do
but altering anything seems to put the secret graphic on the map regardless of variables.
Thx!
This is what it looks like in PScreen_RegionMap:
Code:
for hidden in REGIONMAPEXTRAS
if hidden[0]==mapindex && ((@wallmap && hidden[5]) ||
(!@wallmap && hidden[1]>0 && [COLOR="Red"]$game_switches[hidden[1]][/COLOR]))
if !@sprites["map2"]
@sprites["map2"] = BitmapSprite.new(480,320,@viewport)
@sprites["map2"].x = @sprites["map"].x
@sprites["map2"].y = @sprites["map"].y
end
pbDrawImagePositions(@sprites["map2"].bitmap,[
["Graphics/Pictures/#{hidden[4]}",hidden[2]*SQUAREWIDTH,hidden[3]*SQUAREHEIGHT,0,0,-1,-1]
])
end
end
Code:
$game_variables[74]==hidden[1]
Thx!