Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / need help with problem

Author
Message
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 24th Jan 2004 17:11
hello everyone,

thx for posting to my last problems....
and i finally got them working

the next problem is really peeing me off

its still to do with my game...

the problem is i have made spells for my game and one of them is empower where your strength gets * by 1.5 and i only want the spell to last about a minute but i cant get the spell to ever stop....
could some one plz help me with this prob
Reaperman
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Kent, England
Posted: 24th Jan 2004 17:21
Hello Slurch.

I’m at work at the mo, but I think I can help you.

Just assign a "flag" to your power variable. (I will take it your using a variable to monitor the time,)


So if the power of your characters strength is normally 100 and it is stored in the variable cstr (character Strength) then do the following:

<Rest of program above here>
if time>=5000
cstr=100:time=0
Endif
Inc time
<Rest of program follows here>

Hope that fixes it for you.
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 24th Jan 2004 18:08 Edited at: 24th Jan 2004 18:12
alright i thank u for that code but this is how it had to be made into my prog it was a right ?$"£$"@

this is the code u sent me (edited)



and this is the spell;



so thank u sooooo very much as i would have never thought of doing it that way


also if n e one would like to copy this spell be my guest as we
are here to help one another (even 1 eyed pirate's lol

Login to post a reply

Server time is: 2025-05-22 12:30:35
Your offset time is: 2025-05-22 12:30:35