[Compilation] Maniascripts by w1lla

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

[Compilation] Maniascripts by w1lla

Post by w1lla »

Hi,

thanks to the following tutorials:

http://konte.dyndns-web.com/trackmania/ ... ation.html
http://destroflyer.mania-community.de/m ... torial.php
http://destroflyer.mania-community.de/m ... _table.php
http://forum.funtrackers.net/showthread ... aniascript

i made a first manialink/maniascript to join a server by keypressing F8.

The code is available for now and viewable at manialink smurfer to join The Smurfs [Benelux] server immediately by pressing F8.

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<manialink version="1">
<quad posn="-45 15 0" sizen="100 30" style="Bgs1" substyle="BgList"/>
<label id="myLabel" posn="-30 7 0" scale="2" style="CardButtonMedium" text="$06f The Smurfs $f80[Benelux]" manialink="maniaplanet://#join=smurfer" ScriptEvents="1" />
    <script><!--
while(True) {
    foreach(Event in PendingEvents) {
        if (Event.Type == CGameManialinkScriptEvent::Type::KeyPress) {
		if(Event.CharPressed == "2883584")
		OpenLink("maniaplanet://#join=smurfer", ::LinkType::Goto); // -> exemple
        }
    }
    yield;
}
    --></script>
</manialink>
a tip always add ScriptEvents="1" to make it work.

With kind regards,

w1lla.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest