Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Hogofogo

#1
Hello wise ags masters,

Question: is there a way to have "custom properties" for objects, characters, hotspots which can by dynamically changed from script? Also they need to stay even when I'm changing rooms.

Same question with background info: I'm trying to create simple interface where you use just left mouse button. You use it for walking, when you hover cursor over some object/hotspot/character cursor will change to look cursor/interact cursor/talk cursor. And behavior can change, for example first action on character can be look, second talk etc. That is already working as I played a lot with global script - repeatedly_execute,on_mouse_click, with iItem_<action> events and with my own gui. Now what I want: when I click on item in gui, cursor will change to that item (already working) and I can move that cursor over room and when I hover with that cursor over some hotspot/character/object, cursor will change to same "glowing" item, this indicate that item can be used, that some action will happen. Change cursor graphics is simple but I don't know how to do testing condition. My idea is to put in globalscript in function repeatedly_execute() something like

if (  (room == something) and (GetAtScreen(mouse.x,mouse.y).ListOfUsableItems contains player.ActiveInventory)   ) then mouse.ChangeModeGraphics(glowingItemSprite)

So how to implement "listOfUsableItems"? And this list must be possible change dynamically.

Or is there possibility to implement OnMouseOver event to each object/char/hotspot? That would make everything easier.


Any answer appreciated, thanks :)
SMF spam blocked by CleanTalk