SphereCommunity
2 Questions? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: 2 Questions? (/Thread-2-Questions--5880)



2 Questions? - Capes - 03-07-2018 01:25 AM

Hi everyone! I have 2 questions.
I'm using version 0.56d

Question #1 -
According to shpere wiki LINK item event's work like this (below).....

[ITEMDEF 0c9b]
//small palm
DEFNAME=i_plant_smallpalm_3
VALUE=1
CATEGORY=Vegetation
SUBSECTION=Trees
DESCRIPTION=Small Palm
ON=@CREATE
EVENTS +e_eventhandler

[TYPEDEF e_eventhandler]
ON=@itemDClick
src.smsg CLICK!
return 1

But the above does not.....
This (below) also does not work..

[EVENTS e_eventhandler]
ON=@DClick
src.smsg CLICK!
return 1

It only works when I change EVENTS to TYPEDEF and us @DClick (as below) then it works!

[TYPEDEF e_eventhandler]
ON=@DClick
src.smsg CLICK!
return 1

Are item events implimented?

///////////////////////////////////////////////

Question #2-
Is it possible to create a ROOM on the fly?
Example:


//When this event happens
//create a room
//assign flags to room

//when this event happens
//remove previously created room



Thanks in advance!
Capes


RE: 2 Questions? - azmanomer - 03-07-2018 01:33 AM

in sphere item event is =typedef u can use typedef for items.

i dont understand the 2th question.


RE: 2 Questions? - darksun84 - 03-07-2018 02:17 AM

Typedef are events for item, @ItemDclick is a character only event while @Dclick is an item only event

Also you can't create ROOM on the fly, but you can create "a multi area" think


RE: 2 Questions? - Capes - 03-09-2018 07:31 AM

Thanks for the responses!