drawing icons from iconset to the map

Hi, I wanna ask if there's a way to draw icons from the iconset in the game map. say for example I wanna draw the weapon icon on map, how can i create than in a script call?

is there a way?

tnx.
there is no default way - you'll have to go one of two routes, both of them are indirect:


1) export the iconset and make it into either tilesheets (if you have a tilesheet to spare in your current map's tileset) or spritesheets (a lot more work, but has no limits)


2) use a custom script to gain access to icons for events (for example http://www.rpgmakervxace.net/topic/8029-icon-event-graphics/)
ohh i see. i thought there is a way in the script section (F11) to make icons appear on screen. 
F9 is not the script section. That's the database.
oh yeah wait that's f11...anyways, about the problem, could an icon index be called and shown via the map?
There is a way to do it via scripts...


1) Make a new sprite for either scene_map or game_map


2) Make it use the iconset as it's bitmap


3) define the src_rect of the sprite to the rect of the icon


if you want to show the icon at a different size:


1) Make a new sprite for either scene_map or game_map


2) Make it have a blank bitmap


3) stretch_blt the icon into that blank bitmap
Could you give me a sample script for that? Thank you. I was not able to get step 3.
For method number 1:

def heartfire(x,y,z,ix,iy) spr = Sprite.new spr.bitmap = Cache.system("Iconset") dx = $game_map.adjust_x(x)*32 dy = $game_map.adjust_y(y)*32 spr.x = dx spr.y = dy spr.z = z spr.src_rect = Rect.new(ix,iy,24,24)endthat is for creating the icon, doing this, the icon will stay on wherever position it was created...x and y is the position (tile-based) that you want the icon to show...

z is the z layer of the sprite... modify to possibly change it's layering in relation to other objects

ix and iy is the row and column position of the icon in the iconset... the upper left icon (icon 0), is 0,0
thanks, that's a great help.

Original thread: https://forums.rpgmakerweb.com/threads/drawing-icons-from-iconset-to-the-map.22989/