Prowler Productions
  Dink Smallwood Forum
  Two different starts

Post New Topic  
profile | register | faq

Author Topic:   Two different starts
igloo15 posted 12-09- 03:30 PM CT (US)   Click Here to See the Profile for igloo15   Click Here to Email igloo15  
I want to know if I can have two different starts that would start you in different places and how to do it. I used the skeleton-b to make my d-mod so I don't know where I edit the new start in and where I can attach a script to it either.
someone2 posted 12-09- 06:09 PM CT (US)     Click Here to See the Profile for someone2  Click Here to Email someone2     
This is easy.

start.c
This file is run as soon as Dink has finished loading. Through this, the buttons are drawn. Make a new button by copying and editing another button, and attach it to the script start-5.

start-5.c
Copy start-1.c (the script for the start button), and make the sp_x, sp_y and &player_map changes.

Beuc posted 12-09- 06:17 PM CT (US)     Click Here to See the Profile for Beuc  Click Here to Email Beuc     
The start commands are in the start-x.c files (x from 1 to 4).
There're launched from the start.c which create 3 buttons and attach a script to each one.

So study the start.c code, create a new button (using the Dink help file for new commands if you wish), attach it to a new script.

If you want, there's the old 'order' button from the demo version whiwh is commented out, so you can re-use it:
//&crap = create_sprite(104, 440, 14, 192, 1);
//sp_noclip(&crap, 1);
//sp_script(&crap, "start-3");
//sp_touch_damage(&crap, -1);
Change 'order' graphics and the 'start-3' attached script, or change the script attach:

So for the different map #:
"To warp someone in a script, change &player_map and then call load_screen(), draw_screen(), draw_status()."
Dink C Editor Help File.
But you may copy the start-1.c and just change the map # as said in tut1.txt, because you need to set some stuff, as the game mode (no more mouse pointer), ect.

Beuc posted 12-09- 06:19 PM CT (US)     Click Here to See the Profile for Beuc  Click Here to Email Beuc     
Hey! the time I replied, someone (well... exeactly, Someone!) also reply...
Well, igloo15, you've got 2 replies for one's price! ;)
igloo15 posted 12-09- 06:37 PM CT (US)     Click Here to See the Profile for igloo15  Click Here to Email igloo15     
Great two replies Thanks for the help
someone2 posted 12-10- 01:16 AM CT (US)     Click Here to See the Profile for someone2  Click Here to Email someone2     
That's what happens when it takes 10 minutes to write up a reply, Beuc ;)
Kornelije posted 12-10- 06:58 AM CT (US)     Click Here to See the Profile for Kornelije  Click Here to Email Kornelije     
I just don't know why people are using start-1.c, start-x.c...

You can use whichever script you want like credits.c or quit.c. Why using start-x.c???

Zail posted 12-10- 12:23 PM CT (US)     Click Here to See the Profile for Zail  Click Here to Email Zail     
It's the KISS principal.

Keep It Simple, Stupid!

It keeps all button scripts together, which is a good thing if your D-mod has several scripts.

Kornelije posted 12-10- 12:41 PM CT (US)     Click Here to See the Profile for Kornelije  Click Here to Email Kornelije     
It is more simple to have your own names than thinking about what is the script for certain button, specially when you have 12 buttons within your DMOD like the one I'm working on...
Stupid is not appropriate word in forums...
Thanks!

I AM STUPID, SO WHAT?

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.