Author Topic: I need spell variable help!  (Read 1309 times)

I am making an rpg and I need help on how to make a few things with variables.
The things I need help with are listen blelow.

Spells- - -Variable events dealing with saying a word and something happening[Example below]

Say "Fire Blast" , and a tank shell comes out...I've tried this before but I can only seem to get it to either, not stop shooting, or to only shoot when i click the brick...

Can anyone help me?


Click which brick? Can you give us a little more information about your system?

Click which brick? Can you give us a little more information about your system?
I made a brick that i clicked, and i would be able to say something, and it would fire something...but I either messed up so it wouldn't stop firing, or i had to click the brick over and over again...

I think he means to show him the code,too.

I think he means to show him the code,too.
Code?I'm using variable events...

I think he means to show him the code,too.
Nope :P

Anyway, I guess you're using IfPlayerLastMsg.
Maybe, like...  I suppose it would be quite easy to make it so that you say FireBall or whatever, and then click the brick, but that's not the same. Does it have to be with a brick? I think there's a OnPlayerTalk event running around somwhere in the Add-ons section.

ahahahah, on the last line, say:

Variablefalse-player-spawnprojectile-NONE

That way whenever you say something else, it stops.

ahahahah, on the last line, say:

Variablefalse-player-spawnprojectile-NONE

That way whenever you say something else, it stops.
Don't work...

I am making an rpg and I need help on how to make a few things with variables.
The things I need help with are listen blelow.

Spells- - -Variable events dealing with saying a word and something happening[Example below]

Say "Fire Blast" , and a tank shell comes out...I've tried this before but I can only seem to get it to either, not stop shooting, or to only shoot when i click the brick...

Can anyone help me?


BTW
I use
onActivate>self>firerelay
onrelay>self>firerelay
onrelay>self>iflastplayermsg>[Fire Blast]
onVariableTrue>player>spawnprojectile[tank shell]

is there anything I can do to make it so it only fires on time?

0 onactivate>self>firerelay
1 onrelay>self>firerelay
2 onrelay>self>iflastplayermessageequals"fireblast"
3 onvariabletrue>player>spawnprojectile[tankshell]
4 onvariabletrue>self>seteventenabled[3][off]
5 onvariablefalse>self>seteventenabled[3][on]

0 onactivate>self>firerelay
1 onrelay>self>firerelay
2 onrelay>self>iflastplayermessageequals"fireblast"
3 onvariabletrue>player>spawnprojectile[tankshell]
4 onvariabletrue>self>seteventenabled[3][off]
5 onvariablefalse>self>seteventenabled[3][on]
that works but for some reason i have to click it again to fire again...i say the word twice but the second time it wont fire...

0 onactivate>self>firerelay
1 onrelay>self>firerelay
2 onrelay>self>iflastplayermessageequals"fireblast"
3 onvariabletrue>player>spawnprojectile[tankshell]
4 onvariabletrue>self>seteventenabled[3][off]
5 onvariablefalse>self>seteventenabled[3][on]
6 onvariabletrue>self>firerelay

or

0 onactivate>self>firerelay
1 onrelay>self>firerelay
2 onrelay>self>iflastplayermessageequals"fireblast"
3 onvariabletrue>player>spawnprojectile[tankshell]
4 onvariabletrue>self>seteventenabled[3][on]
5 onvariablefalse>self>seteventenabled[3][off]

I dont know if it works but try.

Don't work...

Yes it does. This is how I always make mine work, and it does.

So use this?

Code: [Select]
onActivate>self>firerelay
onrelay>self>firerelay
onrelay>self>iflastplayermsg>[Fire Blast]
VariableTrue>player>spawnprojectile[tank shell]
Variablefalse-player-spawnprojectile-NONE

Or you could just wait 10 mins and wait for mine -_-