Prowler Productions
  Dink Smallwood Forum
  Dunno how to do this...

Post New Topic  
profile | register | faq

Author Topic:   Dunno how to do this...
IZT posted 02-21- 07:53 AM CT (US)   Click Here to See the Profile for IZT   Click Here to Email IZT  
Hi all, I'm a beginner with lots of ideas:

1) Summoning spells
Is it possible to make a spell that creates creatures next to you, and then they will attack the enemies. And they would not attack Dink. The main problem is that they would go towards the creatures on the screen... for example, summons 2 slayers to kill 3 pillbugs... How can I make the slayers move towards the first 2 pillbugs, and then attack the third..?

b) What 'bout homing spells, for example a seeker sphere..? How could I make the targetting system...?

c) Could I make a familiar which would follow Dink, but couldn't be controlled by the user... So it could run to kill monsters if it's not trained well.

Hope someone understands what I'm sayin' and helps me.
For more ideas, mail mursumaagi@icqmail.com
Thank you.
-IZT

FF4LIFE posted 02-21- 04:57 PM CT (US)     Click Here to See the Profile for FF4LIFE  Click Here to Email FF4LIFE     
Actualy, yes, i'm thinking about doing a summoning spell of sorts. Basicly, you check for anything with a brain of 9 or 10, and if there is one, set the target as that sprite. This would be as follows:


loop:

int &crappy = get_sprite_with_this_brain(9, ¤t_sprite);

if (&crappy > 0)
{
sp_target(¤t_sprite, &crappy);
sp_speed(¤t_sprite, 3);
sp_brain(¤t_sprite, 9);
sp_touch_damage(¤t_sprite, 10);
wait(2500);
goto loop;
}

thus, it will search out a sprite with brain 9 every 2.5 seconds, and if there is one, it'll follow it. You can also do this with brain 10 if you use that brain for monsters. Now, if you want it to follow dink if there is no moster, but this after:

if (&crappy == 0)
{
sp_follow(¤t_sprite, 1);
sp_touch_damage(¤t_sprite, 0);
wait(2500);
goto loop;
}

now it will follow you and every 2.5 seconds look for someone with a brain, and if there isn't one, keep following you. This should get you started pretty well on summoning characters.

IZT posted 02-22- 04:04 AM CT (US)     Click Here to See the Profile for IZT  Click Here to Email IZT     
Thanks for help, but as I said, I'm total newbie... So I place that script to the summoned creature's file? For example squirrel.c ...? Well thanks anyway, I'm glad someone understood.. *smile*
-IZT
Beuc posted 02-22- 06:11 AM CT (US)     Click Here to See the Profile for Beuc  Click Here to Email Beuc     
Dan Walma a.k.a. Redink1 made a "dink friendly double" script, which makes a 2nd Dink punch ennemies.

It doesn't work properly, but you may study it.
I think it's in the Other Files part in the Dink Network
http://dink.telefragged.com

IZT posted 02-22- 10:37 AM CT (US)     Click Here to See the Profile for IZT  Click Here to Email IZT     
So Now I've got a nice little pig running after dink, and attacking slayers, and getting killed *smile* And you can get one from a nice old pig farmer named Dink Smallwood... The main char of my upcoming DMOD Spilled Ink, (SpilleDink)is his grandson, but doesn't know that... Thanks for help, I'm sure I have more questions to ya all..
-IZT
Darius Wolfe posted 09-18- 06:37 AM CT (US)     Click Here to See the Profile for Darius Wolfe  Click Here to Email Darius Wolfe     
You may want to add a bit of script to the summoned creature and to non-hostile sprites (or to hostile ones, whichever are fewer) which have the same brain as whatever the seeker is meant to attack, something like:

if (&friendly == 0)
{
goto Attack;
}

Then have friendly Brain9 (or whatever) NPCs have the text:

&friendly = 1;

and monsters:

&friendly = 0;

It might keep embarassing incidents, such as your piggie attacking guards, or somesuch, from happening. In my DMOD (tentatively titled "Lost in Serenia") doing certain things, such as attacking guards, can have you branded a criminal, which will have the guardians (bad mo-fo's) after you until the status is resolved.

nwdel posted 12-15- 10:10 AM CT (US)     Click Here to See the Profile for nwdel  Click Here to Email nwdel     
Beuc was right. You can usedink friendly double for a start, but if you want to let "Dink2" walk right behind you, you'd first put let dink2 attack dink with no power, and IF there is a creature you should attack (the &friendly thing) set attack power up, and let him ATTACK!!!

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.