Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Last lifesigns of IntenseX [Re: ozziedave] #408490
10/02/12 11:20
10/02/12 11:20
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
If you do this, it would be valid for all exits.
So i would suggest, that you write a custom action.
Example:

Code:
var KeyFound=0;

action my_LevelExit()
{
	set(my,PASSABLE | INVISIBLE);
	while (plBiped01_Entity==NULL) wait(1);
	while (1)
	{
		if (plBiped01_Entity!=NULL)
			if (vec_dist(plBiped01_Entity.x,my.x)<=my.skill1&&KeyFound)
			{
					ix_LevelChangeRequest=my.skill2;
				
				ent_remove(me);
				return;
			}
		
		wait(5);
	}
}



In this action the door waits for you until you are in range (skill1) and have the key. And then changes the level (skill2 is the ID of the level starting with 0 .. numbers of levels).


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Last lifesigns of IntenseX [Re: alibaba] #408587
10/04/12 05:39
10/04/12 05:39
Joined: Mar 2006
Posts: 59
O
ozziedave Offline
Junior Member
ozziedave  Offline
Junior Member
O

Joined: Mar 2006
Posts: 59
Many thanks Alibaba for your prompt reply and helpful answer.

Is it possible to have a Global Variable that can transcend
many Lite C files. You know the files you add to your
Main.c script like:

#include <IntenseX.h>
#include <acknex.h>
#include <default.c>
#include <DG_Various.c>
#include <earthball_2.

Many Thanks
Ozzie

Re: Last lifesigns of IntenseX [Re: ozziedave] #408611
10/04/12 14:23
10/04/12 14:23
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Just define all veriables you need before you include the scripts, but after you included acknex.h laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Page 2 of 2 1 2

Moderated by  aztec, Blink, HeelX 

Gamestudio download | 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