📧 Message Board Archive

Is this script possible?
I didnt test it yet, but is it possible?



void use( void )

{

&magic_level = 0;



&healtotal += &level;

&healtotal * &healskill;

&life += &healtotal;



 if (&life > &lifemax)

   &life = &lifemax;

 playsound(22, 22050, 0,0,0);

 draw_status();

 

 //lets make the star magic graphic effect

 spawn("mag-star");

}
Re: Is this script possible?
: &healtotal += &level;



In principle, yes. But I believe you might have touble putting the Dink hard-coded global on the right side of the addition. You'd better to get a local or a custom-defined global variable, say &powerlevel, and do the following:



&powerlevel = &level;

&healtotal += &powerlevel;

Re: Is this script possible?
: : &healtotal += &level;

: In principle, yes. But I believe you might have touble putting the Dink hard-coded global on the right side of the addition. You'd better to get a local or a custom-defined global variable, say &powerlevel, and do the following:

: &powerlevel = &level;

: &healtotal += &powerlevel;



I think thats bullsh*t
Re: Is this script possible?
: : : &healtotal += &level;



: : &powerlevel = &level;

: : &healtotal += &powerlevel;



: I think thats bullsh*t



That's your choice. It is fine that you don't believe me, just don't bad mouth it!



All I said is that I did have some experience finding that hard coded variables like &exp, &level, and &life might act differently sometimes involving a math operation in a script since all of them are changing in the game without script. &level might not be as violent as &exp or &life, but potentially it could become a bug. You might still think that's bullsh*t. Go ahead. I thought I was trying to help! ;(
Re: Is this script possible?
: : : &healtotal += &level;

: : In principle, yes. But I believe you might have touble putting the Dink hard-coded global on the right side of the addition. You'd better to get a local or a custom-defined global variable, say &powerlevel, and do the following:

: : &powerlevel = &level;

: : &healtotal += &powerlevel;

: I think thats bullsh*t



I don't think that's a valid argument either. It should work Prophet.

Re: Is this script possible?
: : : : &healtotal += &level;

: : : In principle, yes. But I believe you might have touble putting the Dink hard-coded global on the right side of the addition. You'd better to get a local or a custom-defined global variable, say &powerlevel, and do the following:

: : : &powerlevel = &level;

: : : &healtotal += &powerlevel;

: : I think thats bullsh*t

: I don't think that's a valid argument either. It should work Prophet.



Actually, I HAVE messed around with such script s and I never had any problems. Of course, I'm not saying there can't be any problems with it, since Seth created it :P

Re: Is this script possible?
: : : : &healtotal += &level;

: : : In principle, yes. But I believe you might have touble putting the Dink hard-coded global on the right side of the addition. You'd better to get a local or a custom-defined global variable, say &powerlevel, and do the following:

: : : &powerlevel = &level;

: : : &healtotal += &powerlevel;

: : I think thats bullsh*t

: I don't think that's a valid argument either. It should work Prophet.



It is a valid argument... those who haven't messed with such scripts/variables probably can't see any reason why it wouldn't work... for there truly isn't any reasonable explanation for why it doesn't.



It just won't.



And, in any case, may I ask why this script was even posted?  "I haven't tried it yet" blah blah blah... why NOT try it?  It takes a whole two minutes to try it, if it doesn't work then post it here.  Otherwise its just a complete waste of time/space/everything for everyone else.
There you go... learn something new every day
I used to have beserker magic in SOB - but I was messing around with those in built globals and all of a sudden weird things starting happening to the stats. Maybe that was it. I took the magic out before I released SOB. Maybe I can put it back in... hmmm but CC had beserker potions, so maybe not... I don't know, depends how bored I get.
Re: Is this script possible?
: : : : : &healtotal += &level;

: : : : In principle, yes. But I believe you might have touble putting the Dink hard-coded global on the right side of the addition. You'd better to get a local or a custom-defined global variable, say &powerlevel, and do the following:

: : : : &powerlevel = &level;

: : : : &healtotal += &powerlevel;

: : : I think thats bullsh*t

: : I don't think that's a valid argument either. It should work Prophet.

: It is a valid argument... those who haven't messed with such scripts/variables probably can't see any reason why it wouldn't work... for there truly isn't any reasonable explanation for why it doesn't.

: It just won't.

: And, in any case, may I ask why this script was even posted? "I haven't tried it yet" blah blah blah... why NOT try it? It takes a whole two minutes to try it, if it doesn't work then post it here. Otherwise its just a complete waste of time/space/everything for everyone else.



I tried it, it worked, but I need some ideas, because, &healtotal + &level * &healskill isnt good, or is it?