Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (NnamueN, Akow, 1 invisible), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Action on Objects not working! #349016
12/03/10 03:48
12/03/10 03:48
Joined: Dec 2010
Posts: 13
T
tasha19 Offline OP
Newbie
tasha19  Offline OP
Newbie
T

Joined: Dec 2010
Posts: 13
if i run on WED, a message box will appear and say that the <army_lights>(which is the name of my action that has its function on SED):Action not found

this is the simple code i made in SED:
//////////////////////////////////////////
BMAP* cursor_pcx = "mousebmp.pcx";

function highlight_event()
{
if (event_type == EVENT_CLICK)
my.ambient = 100;
my.lightrange = 200;
}
else if (event_type == EVENT_RELEASE)
{
my.ambient = 0;
my.lightrange = 0;
}
}

action army_lights()
{

my.emask = ENABLE_CLICK | ENABLE_RELEASE;
my.event = highlight_event;
}

function main()
{
//video_screen = ; // start in full screen mode
//screen_size.x = 500;
//screen_size.y = 400;
level_load ("asas.wmb"); // load the level
mouse_mode = 2; // show the mouse pointer
mouse_map = cursor_pcx; // set the mouse pointer bitmap

while (1)
{
mouse_pos.x = mouse_cursor.x; // allow the mouse pointer to move
mouse_pos.y = mouse_cursor.y; // on the x and y axis
wait (1);
}
}
/////////////////////////////////
is there something i missed to put into? or is there a problem in my code?

Re: Action on Objects not working! [Re: tasha19] #349019
12/03/10 06:24
12/03/10 06:24
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
I don't know if it changes something but emask has to be set like this:

my.emask |= ....

You've forgot the |


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Action on Objects not working! [Re: Liamissimo] #349026
12/03/10 09:08
12/03/10 09:08
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Originally Posted By: TheLiam

my.emask |= ....

no, this shouldn't make any difference, because it's only a logic or and not any special operator!

But did you include acknex.h??
if not, include this file and try again!


Visit my site: www.masterq32.de
Re: Action on Objects not working! [Re: MasterQ32] #349031
12/03/10 11:01
12/03/10 11:01
Joined: Dec 2010
Posts: 13
T
tasha19 Offline OP
Newbie
tasha19  Offline OP
Newbie
T

Joined: Dec 2010
Posts: 13
yes i have added acknex.h, and i also tried to put the '|' in the my.emask, but it didn't make any difference.. frown

Re: Action on Objects not working! [Re: tasha19] #349039
12/03/10 12:08
12/03/10 12:08
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
did you include your scipt into your level?


Visit my site: www.masterq32.de
Re: Action on Objects not working! [Re: MasterQ32] #349057
12/03/10 15:25
12/03/10 15:25
Joined: Dec 2010
Posts: 8
205
berkay Offline
Newbie
berkay  Offline
Newbie

Joined: Dec 2010
Posts: 8
205
Which version are using


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1