Author Topic: One-use Items  (Read 641 times)

I'm trying to make some one-use items that have the temporary effects of changing a player in terms of speed, visibility, size, and health.

I have rough idea of how I could execute most of these ideas:
-Speed would work if I could change the player-type to "Quake".
-Visibility, or invisibility, could be done by hiding nodes.
-Size, I really don't know. I guess I could look at the Super Mushroom.
-Health, by that I mean raising the players max health. This could also be done with a Player-type swap, but Id need to include it with the item.

I do not know how or if you can change a player-type through code.
I also have no idea how to make these effects temporary. An RTB pref could control the time the effect can take place.

Very possible

look through Pandan's armor well crap for playertype changing, and look at that super mushroom for temporary effects(It has a delayed schedule that, in some variable of time in milliseconds, changes you back to normal size. You could just switch that scaling code with the playertype changing code).
« Last Edit: June 19, 2011, 02:53:54 PM by Zloff »

The super mushroom literally just does basically this:

Code: [Select]
%player.setPlayerScale("5 5 5");
%player.schedule(3000,setPlayerScale,"1 1 1");
« Last Edit: June 19, 2011, 07:13:53 PM by otto-san »

So, those simple lines of code makes someone grow, them shrink 3 seconds later?
Cool.

So, those simple lines of code makes someone grow, them shrink 3 seconds later?
Cool.
Yeah except that I made it so that they change 5 5 5 from 5 5 5 three seconds later.

fixed

You understand one-use, though? If not, you can look at the Pill's code.

Yea, the pill's code is what Im using for a base, although I don't need the Bleed effect.