Author
|
Topic: spawning potties
|
joshriot |
posted 08-30- 05:18 PM CT (US)
suppose i had dink spawn scripts or attach a few scripts to 1000 with loops going and things to add new features- i will give an example:loop: if (&potty == 1) { say("i need to use the restroom!",1); } if (&potty > 1) { say("i need to use the restroom really bad!",1); &life -= &potty } wait(10000); &potty += 1; goto loop; i dont know, some things like that. now the question is if i have things like these running will the game be slower in any way?
|
FF4LIFE
|
posted 08-30- 10:25 PM CT (US)
Not really, this is how i do my music and a few other things. You'd have to have a helluva lot, say a couple hundred scripts or so, to really do any damage. |
joshriot
|
posted 09-01- 12:32 PM CT (US)
cool, thanks. |
joshriot
|
posted 10-03- 05:38 PM CT (US)
now say i want to have this spawn when a game is loaded, how do i do this? ive tried adding spawn("whatever"); both before and after the "load_game(&result);" in start-2 but it seems the script does not spawn properly. it works perfectly with start-1 however. word out. |
redink1
|
posted 10-04- 07:07 AM CT (US)
That tis a hard one... load_game seems to be a hard command, as you can't do any cool things with it.Imagine, you spawn it before load_game(). Then, once it loads the game, it terminates what you spawned. If you put it right after load_game(), then it will never be reached because load_game() terminates its own script. If you're really deadset on getting the game to spawn after you load, try modifying the main of the save bot with this: int &dinkx = sp_x(1,-1); int &dinky = sp_y(1,-1); if (&dinkx <= 21) return; if (&dinkx >= 619) return; if (&dinky <= 1) return; if (&dinky >= 399) return; spawn("whatever); The lines above will check and see if Dink is near the edges of the screen, a way to tell if the player walked onto the screen rather than loaded. |
joshriot
|
posted 10-04- 04:16 PM CT (US)
i can try that. i wasnt planning on using savebots but it seems its my only choice. thanks. |
FF4LIFE
|
posted 10-04- 05:39 PM CT (US)
Yeah, the way my game's set up there is only one savebot, so i spawn anything from that screen. |