Author Topic: Variable/Conditional Events (V.4)  (Read 68670 times)

Random number brick? What about the variables Random????
what are you talking about

can i subtract something like this (event1) onactivate self ifvarrioable player [exp] greaterequals [expgoal] (event 2) ifvariabletrue player addvariable [exp] [-expgoal] so will that make exp zero if both vars value are 1 right (im trying to make a rpg leveling system) wait it will take it as a name so i need a new event minusvar
« Last Edit: October 29, 2008, 09:08:13 PM by wrothmonk »

There needs not to be a subtractVar, as you can use negative numbers in addVar.

but i need it to be the number of expgoal and im going to do adding to it so i need a suptractvar now can you see what i need

There is a SubtractVarFromVar.
Use it like this:
Self->SubVarFromVar->Client/Player Exp Client/Player expgoal

thnx didnt see it the first time

how do you use, "ifBrickNameEquals"?

how do you use, "ifBrickNameEquals"?

If the brick name is equal to what the event says, it will perform that event.



Idea for v4: a new kind of variable: server, so that if somonecuts down five hundred trees on  a dedi and then they come back, it keeps them, unlike client, brick, or player. sorry for the messy crap, it's 6:00 in the morning and i cant sleep.

Bump. Version 4 is coming up soon. I've already finished:
ifPlayerID - If the player whos activating the events BLID equals a certain logic. (Not sure if this will be included; LOLIDDESCRIMINATION)
ifPlayerScore - If the player whos activating the events score equals a certain logic.
ifPlayerDamage (Opposite of Health) - If the player whos activating the events damage equals a certain logic.
ifPlayerEnergy - If the player whos activating the events energy equals a certain logic.

v5 will bring BL_ID targets, allowing you to save variables that will be remembered when you re-login into the server. Like what he said up there ^  ^.

If you have any suggestions for v4, go ahead.

LOLIDDESCRIMINATION

What I said on my server when this was used. :P

Bump. Version 4 is coming up soon. I've already finished:
ifPlayerID - If the player whos activating the events BLID equals a certain logic. (Not sure if this will be included; LOLIDDESCRIMINATION)
ifPlayerScore - If the player whos activating the events score equals a certain logic.
ifPlayerDamage (Opposite of Health) - If the player whos activating the events damage equals a certain logic.
ifPlayerEnergy - If the player whos activating the events energy equals a certain logic.

v5 will bring BL_ID targets, allowing you to save variables that will be remembered when you re-login into the server. Like what he said up there ^  ^.

If you have any suggestions for v4, go ahead.

Does ifPlayerID have a ifGreaterEquals or something like the others?


ifPlayerSpeed. From http://returntoblockland.com/forums/viewtopic.php?t=6288
« Last Edit: November 20, 2008, 10:44:58 AM by Friendly Fire »

Im still not sure how to use this
If I wanted to make it that when I click brick1 it sets variable Colten to 1
And then if when I click brick2 and Colten equals one I die

How would I do that



Found out
« Last Edit: November 23, 2008, 11:46:50 PM by Colten »

In v4, can you make a input event Setnewvariable?
Trying to make a rpg where you have to be like mining level 2 to do somthing but Add on gets confused if you do 2 if variables.

this is fail reson: ifvar true event aplies to ALL ifvars and that messes up vars i can only do one if on the brick and i hate it please fix and i will ove if not FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL FIAL FAIL FAAAAAAAIIIIIIIIIIIIL