Author
|
Topic: mmmm......?
|
ghery |
posted 12-16- 05:42 AM CT (US)
I'm here again! Thanksyou for help me! Now my problems is:1)(my d-mod begin in a second floor)when I go down all is normal but when I came back to the second floor all the "black" outside the room became to the same colour inside the room... in the editor and when I begin is black outside, Howewer in all the rooms happen this.... why? 2)I've put a guard near the exit's door... the guard say (you're not ready...)but Dink could go out if I want... The only way is puts the guard in front of the door...but the door is too big!Ok I could make the door small but... I prefer a big door. Can I seal the door? Can I make dink came back when he reachs the point?(like in the forest when he go to pick up the nuts...) 3)When dink is (strenght 6(for example)) The guard say... ok.. you can pass now!! and the door is going to open He he he... Why make d-mod is so hard?(this isn't a problems but my personal opinion...) Could you do something? Bye
|
Kornelije
|
posted 12-16- 08:15 AM CT (US)
2 you can make a transparent sprite and set his hardness to 1 and put it in the place of your doors. Then if Dink strength is or more than 6 you just kill that sprite. You can do the same thing with visions but it is a bit more complicated. 3. //***************** Subproc: if (&strength >=) { say("ok.. you can pass now!!",&guard) // KILL THE SPRITE HERE with sp_kill(); } else { say("You can't pass",&guard) }//*******************
I hope this helps |
Kornelije
|
posted 12-16- 08:18 AM CT (US)
Sorry I did a mistake3.
//***************** Subproc: if (&strength >= 6) { say("ok.. you can pass now!!",&guard) // KILL THE SPRITE HERE with sp_kil(); } else { say("You can't pass",&guard) kill_this_task(); } //*******************
|
Zail
|
posted 12-16- 12:09 PM CT (US)
1. Your "black" is really "transparent". If you wanted a true black tile you would have to add one to a tileset (Ts39.bmp in the TILES folder). Don't make the tile absolute black. Make it one shade above black. Kornelije got 2. and 3. done (combined). Except the part of coming back. Just add a sprite and give it the warp hardness (with directions to the castle (Shift 1-3))at the location where Dink should reenter. If you think D-mods are hard to make you should try making a Mission for Thief-The Dark Project. |
ghery
|
posted 12-16- 03:54 PM CT (US)
Nothing works...I've written in Guard.c (and I've ,using Shift-5 , written in the guard "guard") Behind the guard I've put a visible warp( I don't know How to make a sprite invisible..) But if I write so, the guard desappears when I talk with he?(when I have strength >6)or he go away from the screen? void talk (void) { if(&strength >=6) { say("text",&guard); sp_kill(); } else say("text", &guard); kill_this_task(); } }
|
Kornelije
|
posted 12-16- 06:08 PM CT (US)
Instead of sp_kill(); you have to write sp_kill(&nameofblackblock,1);Just replace &nameofblackblock with the sprite name of the transparent blocker. |
ghery
|
posted 12-17- 04:31 AM CT (US)
//***************** void talk(void) { if (&strength >= 6) { say("`8ok...puoi passare adesso!!", ¤t_sprite); sp_kill(nameofblock); } else { say("`8Non puoi passare, non sei abbastanza preparato", ¤t_sprite); kill_this_task(nameofblock); } } //*******************When I speak whit the guard he says:-Non puoi passare non se abbastanza preparato- but when I reach 6 or 7 in strenght he don't says a word...why? The guard(in my d-mod)is near the door but not in front of that, the block is an axe in the wall and whit the hardness it blocks the passage. Someone help me...or I'm going to become crazy! |
ghery
|
posted 12-17- 11:38 AM CT (US)
Answer!please! |
Zail
|
posted 12-17- 01:10 PM CT (US)
Ok. You are removing the script from the sprite when you use the line:kill_this_task(nameofblock); Remove that line and you should be ok. What happened with your script is that it made the guard start saying something. Then it immediately went to the next command which removed the script. This cut off the guard's talking. You might have been able to see the words quickly flash on then off the screen. |