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
0 registered members (), 16,232 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
detecting flag and dealing area damage #359554
02/18/11 15:08
02/18/11 15:08
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Hi guys, I have 2 questions.

1) When an enemy is hit by a spell/bullet (/hit event), I want that it checks the flag of that spell/bullet. How do I do that? It should look something like this:

Code:
function corruptedmage_hit()
{
if (my.STATE != 4) //checking if the ent is not dead
{		
	if (you)
	{
  ??->  if (you.flag == flag 2)
        {
        my.HEALTH -= you.DAMAGE; //both HEALTH and DAMAGE are skills
	}
        }
	.....



2) I want that a spell detects ents in a small area when it explodes and than picks those ents and deals damage to does ents. How do I do this? For the damage I use a skill which is set for the spell projectile as soon as the spell is cast.

Thanks for taking the time, I would be darn gratefull if someone could answer the questions ^^.

Re: detecting flag and dealing area damage [Re: reknak] #359555
02/18/11 15:19
02/18/11 15:19
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
1) if(is(you,FLAG2)) { ... }

2) Use c_scan and ENABLE_SCAN.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: detecting flag and dealing area damage [Re: Superku] #359777
02/19/11 15:18
02/19/11 15:18
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Superku to the rescue, all hail the Superku! Thank you Superku!


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