Author Topic: Saving Datablocks & OnBrickPLant  (Read 1018 times)

I need some events for my RPG. If anyone could make events, OnBrickPlant or Saving Datablock. (If possible)

P.S. IDK if these even are on already...
« Last Edit: June 05, 2009, 10:00:33 PM by Kygrob »

or maybe onplayerdeath

or maybe onplayerdeath
we have that already with variables
onactivate>self>firerelay
onactivate>player>setvariable[roar][5]
onrelay>self>ifvariable[player][roar][equals][5]
onvariabletrue>self>cancleevents
onvariabletrue>client>chatmessage[You have died!]
onvariabletrue>player>setvariable[roar][5](delayed 1 sec or so)
onvariabletrue>self>firerelay(delayed 1sec or so)
and that should work, i have the ondeath, just not starting it right at least, i need to test my theory with this


Ambiguous title. Please change it.

Ambiguous title. Please change it.
New events is ambiguous?

New events is ambiguous?

Yes. Even though it tells you what's inside, it isn't specific. Kind of like a topic named "Help me!". It should be titled "OnBrickPlant and Saving Databrick", or something similar.

saving databrick lol


Wht the hell is it funny ass.
Because it's called a datablock.
And you save one by entering into the console:
Code: [Select]
datablockname.save("folder/location/filename.cs");

Because it's called a datablock.
And you save one by entering into the console:
Code: [Select]
datablockname.save("folder/location/filename.cs");
but i mean like somwthing like the saving items or variables saving thing for events

or maybe onplayerdeath
maybe good idea

we already have that with...
we have that already with variables
onactivate>self>firerelay
onactivate>player>setvariable[roar][5]
onrelay>self>ifvariable[player][roar][equals][5]
onvariabletrue>self>cancleevents
onvariabletrue>client>chatmessage[You have died!]
onvariabletrue>player>setvariable[roar][5](delayed 1 sec or so)
onvariabletrue>self>firerelay(delayed 1sec or so)
and that should work, i have the ondeath, just not starting it right at least, i need to test my theory with this

oh, and you are aware that you can make it so that when you plant a brick, your score goes up

oh, and you are aware that you can make it so that when you plant a brick, your score goes up
wat i mean by that, is like its an output events so it decreases a variable or something...