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

Too long in kiwi-land.
Not at all, thus is more olde English.

...too long dreaming about living in 1955 as nobility.

Sounds complex.....much needed.....bump

The basics are extremely easy, but it gets treacherous when you venture into VartoVar......

I have an idea, if you could expand the display variable function, that would be great. As in, making it so you can write the way it displays the variable.
As opposed to:
%1 is %2

Add another text box into the output parameters so it could look like:
%message %2

In game it could look like:
Your wood is now 2
or
You have received 1 more wood, which makes makes your wood now 2

I don't even know if this is possible, but it seems like it would be.
The register could look something like this:
Code: [Select]
registerOutputEvent(GameConnection, "displayVariable", "list Player 0 Client 1\tlist ChatMessage 1 CenterPrint 2 BottomPrint 3 MessageBoxOK 4\tint 1 10 3\tstring 32 75\tstring 32 75",1);
Now looking back, I think that adds 5 arguments, so I don't think that's possible that way, but let me know what you think!
bump =)


Custom display messages has already been put in for v5

How's v5? :3

Tom

Instead of adding an "Ifxxxxxx" event for everything, you should make a "Get" event, with a menu for what to get and a  textbox for what variable to store it as.


LOL. Check this out: How to do a respawn glitch.
Code: [Select]
onActivate Self fireRelay
onRelay Self ifLastPlayerMsg RESPAWN
VariableTrue Client InstantRespawn
onRelay Self fireRelay

Then, all you have to do is say RESPAWN in the chat.
To stop the respawn glitch, just say anything besides RESPAWN.

LOL. Check this out: How to do a respawn glitch.
Code: [Select]
onActivate Self fireRelay
onRelay Self ifLastPlayerMsg RESPAWN
VariableTrue Client InstantRespawn
onRelay Self fireRelay

Then, all you have to do is say RESPAWN in the chat.
To stop the respawn glitch, just say anything besides RESPAWN.
I just tried it. All i have to say is... :D

Bump for close update? Pwease?



Custom display messages has already been put in for v5
Just edit the centerPrint, chatMessage etc. events to replace the <var:> values with the value of the variable.

Just edit the centerPrint, chatMessage etc. events to replace the <var:> values with the value of the variable.

V5 is already out and does that already. You mean if you put centerPrint("The client's var is <var:client:somevariable>","3");  Then it would replace <var:client:somevariable> with its value. Is that what your talking about?