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

wait how do set it so that when i hit 10 targets and acivate the brick it spawns guns akinbo but not unless i hit 10 targets i have the events on the bick set as this ontagetprojectilehit self addvariable 1
on activate self ifvariable brick [    ] greaterequals [ 10 ]
variabletrue self spawnitem [10]
  • electricguitar

what i think that should do is f i hit 10 targets then activate the brick it should spawn a electrick guitar but when i do that it doesnt spawn anything why

i figured ot why it aint working I CANT USE THE NUMBER FROM ONE VAR TO ONOTHER otherwise its working i need it so it carrys the number from the event 1 to event 3 as in event 1 ontagetprojectilehit addvar 1 event 2 on activate self ifvar player [ ] greaterequals 50 3 event 3 ifvartrue self spawn item guitar i want it so the number that the player has goes to the [ ] in var 2 how do i do that thats all i need to know to make my rpg
« Last Edit: October 27, 2008, 12:21:53 AM by wrothmonk »

That box is the variable name.

Thanks for the explanation, destiny, I got double "if" gates working now :).
I'm anxiously awaiting V4!

so i put a name in box one and a number in box to and thats why it isnt working?

ok will this work [event 1] onactivate player addvar [var1] [1] [event 2 brick 2] onactivate self ifvariable player [var1] greaterequals [50] [event 3 brick 2] ifvartrue self spawnitem gun it should onactive spawn a gun when i clicked brick 1 50 times right


yep it did but theres one prob WHY CANT IT SHOW THE VALUE OF A VAR

Try using Self DisplayVariable [method] [time for prints] [variable]
Or Client DisplayVariable [Player/Client] [method] [Time for prints] [variable]


all i got when i do on both is on activate self displayvariable [chatmessage centerprint bottomprint mesageboxok] nothing more i cant do it

uh is there a way i can set a if var true to a certain ifvar event becouse im making a fighting rpg with targets that attack you i got it all figured out but the var for when i hit the taget so many times interfears with the if var true for the player health please help or fix this bug

actuly i can do it with real helth but then i cant heal a certain amount and multiple times or like you could use it only 3 times adn then it dissapears but all i have to heal is if i set helth and that wont work and the mdigun i dont know how much it will heal

WAIT AN UPDATE I CAN MINUS HEALTH GOOD

Random number brick? What about the variables Random????